From 0b163ba92e39d582897a72b42a76a3fe9a4dcada Mon Sep 17 00:00:00 2001 From: Virginia Dooley Date: Tue, 16 Apr 2024 14:30:14 +0100 Subject: [PATCH 1/2] Fix conditional statement for release --- .github/workflows/release.yaml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 503d72f..354565c 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -1,17 +1,15 @@ name: Publish Python Package on: + release: + types: [created] workflow_run: - workflows: ["Run Tests"] + workflows: ["Run Tests"] types: - completed branches: - master - if: ${{ github.event.workflow_run.conclusion == 'success' }} - release: - types: [created] - jobs: test: runs-on: ubuntu-latest @@ -31,6 +29,7 @@ jobs: pip install --upgrade pip pip install -e '.[test]' deploy: + if: ${{ github.event.workflow_run.conclusion == 'success' }} runs-on: ubuntu-latest needs: [test] environment: release From 481d95523c9ba94742945fdd8dd7d8487b159744 Mon Sep 17 00:00:00 2001 From: Virginia Dooley Date: Tue, 16 Apr 2024 14:58:56 +0100 Subject: [PATCH 2/2] Don't run lighthouse test --- .github/workflows/run-tests.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index a64ad72..87a4eee 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -23,7 +23,4 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install -r requirements.txt - - name: Run tests - run: pytest