From 0d0e45f80043d2dc53ff23d2317a1809d80be6ed Mon Sep 17 00:00:00 2001 From: Ivan Schaller Date: Thu, 1 Feb 2024 20:42:32 +0100 Subject: [PATCH] run all tests only on PR --- .gitea/workflows/build.yml | 1 + .gitea/workflows/check_code.yml | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index b139fd5..7bb9671 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -90,6 +90,7 @@ jobs: - name: update dockerhub repo description uses: peter-evans/dockerhub-description@v3 + if: gitea.event_name != 'pull_request' with: repository: ${{ env.AUTHOR }}/${{ env.IMAGE }} short-description: ${{ github.event.repository.description }} diff --git a/.gitea/workflows/check_code.yml b/.gitea/workflows/check_code.yml index 69fdf4c..e1e41d9 100644 --- a/.gitea/workflows/check_code.yml +++ b/.gitea/workflows/check_code.yml @@ -23,7 +23,7 @@ jobs: scan-code-py311: runs-on: python311 if: gitea.event_name != 'pull_request' - needs: [check-code-py311] + needs: [check-code-py38] steps: - name: checkout code uses: actions/checkout@v3 @@ -63,6 +63,7 @@ jobs: check-code-py39: runs-on: python39 needs: [check-code-py38] + if: gitea.event_name == 'pull_request' steps: - name: checkout code uses: actions/checkout@v3 @@ -82,6 +83,7 @@ jobs: check-code-py310: runs-on: python310 needs: [check-code-py39] + if: gitea.event_name == 'pull_request' steps: - name: checkout code uses: actions/checkout@v3 @@ -101,6 +103,7 @@ jobs: check-code-py311: runs-on: python311 needs: [check-code-py310] + if: gitea.event_name == 'pull_request' steps: - name: checkout code uses: actions/checkout@v3