File tree Expand file tree Collapse file tree 2 files changed +25
-2
lines changed Expand file tree Collapse file tree 2 files changed +25
-2
lines changed Original file line number Diff line number Diff line change 2121 python-version : " 3.8"
2222 -
uses :
pre-commit/[email protected] 2323
24- test :
24+ tests :
25+
26+ name : Pytest (${{ matrix.platform }}, Python ${{ matrix.python-version }})
2527
2628 strategy :
2729 fail-fast : false
4648 pip install -e .[testing]
4749 - name : Run tests
4850 run : pytest
51+
52+ # https://github.com/marketplace/actions/alls-green#why
53+ check : # This job does nothing and is only used for the branch protection
54+
55+ if : always()
56+
57+ needs :
58+ - pre-commit
59+ - tests
60+
61+ runs-on : ubuntu-latest
62+
63+ steps :
64+ - name : Decide whether the needed jobs succeeded or failed
65+ uses : re-actors/alls-green@release/v1
66+ with :
67+ jobs : ${{ toJSON(needs) }}
Original file line number Diff line number Diff line change 11version : 2
22
3+ build :
4+ os : ubuntu-22.04
5+ tools :
6+ python : " 3.8"
7+
38python :
4- version : " 3.8"
59 install :
610 - method : pip
711 path : .
You can’t perform that action at this time.
0 commit comments