added echo cmd
pipeline / Show Gitea.ref (push) Successful in 4s
pipeline / Test (push) Successful in 39s
pipeline / Publish (push) Has been skipped

This commit is contained in:
brb
2023-07-11 17:04:05 +02:00
parent 65621ed484
commit c3203f024b
+11 -20
View File
@@ -4,20 +4,13 @@ runs-on: ubuntu-latest
on: [push] on: [push]
image: python:3.10 image: python:3.10
jobs: jobs:
# demo: show-gitea-ref:
# runs-on: ubuntu-latest name: Show Gitea.ref
# steps: runs-on: ubuntu-latest
# - run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event." steps:
# - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!" - uses: actions/checkout@v3
# - run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}." - name: Show
# - name: Check out repository code run: echo "${{ gitea.ref }}"
# uses: actions/checkout@v3
# - run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner."
# - run: echo "🖥️ The workflow is now ready to test your code on the runner."
# - name: List files in the repository
# run: |
# ls ${{ gitea.workspace }}
# - run: echo "🍏 This job's status is ${{ job.status }}."
test: test:
name: Test name: Test
runs-on: ubuntu-latest runs-on: ubuntu-latest
@@ -34,13 +27,11 @@ jobs:
pip install flake8 mypy pytest pip install flake8 mypy pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: PEP8 check - name: PEP8 check
run: | run: flake8 ./code --benchmark --exit-zero
flake8 ./code --benchmark --exit-zero
- name: Type check - name: Type check
run: | run: mypy ./code
mypy ./code publish:
deploy: name: Publish
name: Deploy
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: [test] needs: [test]
if: gitea.ref == 'refs/heads/release' if: gitea.ref == 'refs/heads/release'