From 420bc77f899ba0b0906ba38d3c50acf3dbd28d97 Mon Sep 17 00:00:00 2001 From: Richard van der Hoff Date: Fri, 4 Mar 2022 15:27:53 +0000 Subject: [PATCH] Add a 'tests-done' GHA job --- .github/workflows/pipeline.yml | 14 ++++++++++++++ changelog.d/510.misc | 1 + 2 files changed, 15 insertions(+) create mode 100644 changelog.d/510.misc diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml index ec1c8a3b..c6a94ab2 100644 --- a/.github/workflows/pipeline.yml +++ b/.github/workflows/pipeline.yml @@ -42,3 +42,17 @@ jobs: python-version: ${{ matrix.python-version }} - run: poetry run trial ${{ matrix.test-dir }} + # a job which runs once all the other jobs are complete, thus allowing PRs to + # be merged. + tests-done: + if: ${{ always() }} + needs: + - check-newsfile + - checks + - packaging + - run-tests + runs-on: ubuntu-latest + steps: + - uses: matrix-org/done-action@v2 + with: + needs: ${{ toJSON(needs) }} diff --git a/changelog.d/510.misc b/changelog.d/510.misc new file mode 100644 index 00000000..fba6a0d9 --- /dev/null +++ b/changelog.d/510.misc @@ -0,0 +1 @@ +Add a 'tests-done' Github Actions job.