Skip to content

Commit

Permalink
Add test-summary step
Browse files Browse the repository at this point in the history
  • Loading branch information
asvetlov committed Jan 23, 2022
1 parent aa399a3 commit bd11dec
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/ci.yml
Expand Up @@ -65,7 +65,6 @@ jobs:
test:
name: Test
needs: lint
strategy:
matrix:
pyver: ['3.7', '3.8', '3.9', '3.10']
Expand Down Expand Up @@ -131,10 +130,21 @@ jobs:
flags: unit
fail_ci_if_error: false

test-summary:
name: Tests status
if: always()
runs-on: ubuntu-latest
needs: [lint, test]
steps:
- name: Decide whether the needed jobs succeeded or failed
uses: re-actors/alls-green@release/v1
with:
jobs: ${{ toJSON(needs) }}

pre-deploy:
name: Pre-Deploy
runs-on: ubuntu-latest
needs: test
needs: test-summary
# Run only on pushing a tag
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
steps:
Expand Down

0 comments on commit bd11dec

Please sign in to comment.