From c3203f024b620eeb960a3b1f9317c1e41bfa0894 Mon Sep 17 00:00:00 2001 From: brb Date: Tue, 11 Jul 2023 17:04:05 +0200 Subject: [PATCH] added echo cmd --- .gitea/workflows/pipeline.yaml | 31 +++++++++++-------------------- 1 file changed, 11 insertions(+), 20 deletions(-) diff --git a/.gitea/workflows/pipeline.yaml b/.gitea/workflows/pipeline.yaml index 553c57d..8a9d512 100644 --- a/.gitea/workflows/pipeline.yaml +++ b/.gitea/workflows/pipeline.yaml @@ -4,20 +4,13 @@ runs-on: ubuntu-latest on: [push] image: python:3.10 jobs: - # demo: - # runs-on: ubuntu-latest - # steps: - # - run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event." - # - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!" - # - run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}." - # - name: Check out repository code - # 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 }}." + show-gitea-ref: + name: Show Gitea.ref + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Show + run: echo "${{ gitea.ref }}" test: name: Test runs-on: ubuntu-latest @@ -34,13 +27,11 @@ jobs: pip install flake8 mypy pytest if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - name: PEP8 check - run: | - flake8 ./code --benchmark --exit-zero + run: flake8 ./code --benchmark --exit-zero - name: Type check - run: | - mypy ./code - deploy: - name: Deploy + run: mypy ./code + publish: + name: Publish runs-on: ubuntu-latest needs: [test] if: gitea.ref == 'refs/heads/release'