Skip to content

Commit

Permalink
Merge pull request #262 from tomhea/feature/ci
Browse files Browse the repository at this point in the history
add deploy-status "test", designed for a branch protection rule
  • Loading branch information
tomhea authored Dec 11, 2023
2 parents d993414 + 396d158 commit 93a8277
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,16 @@ jobs:
uses: pmeier/pytest-results-action@main
with:
path: ./*-test-results.xml

# This allows us to have a branch protection rule this entire workflow
deploy-status:
runs-on: ubuntu-latest
needs: [ test_py_os_variations, test_full ]
if: always()
steps:
- name: Successful deploy
if: ${{ !(contains(needs.*.result, 'failure')) }}
run: exit 0
- name: Failing deploy
if: ${{ contains(needs.*.result, 'failure') }}
run: exit 1

0 comments on commit 93a8277

Please sign in to comment.