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 21
21
python-version : " 3.8"
22
22
-
uses :
pre-commit/[email protected]
23
23
24
- test :
24
+ tests :
25
+
26
+ name : Pytest (${{ matrix.platform }}, Python ${{ matrix.python-version }})
25
27
26
28
strategy :
27
29
fail-fast : false
46
48
pip install -e .[testing]
47
49
- name : Run tests
48
50
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 1
1
version : 2
2
2
3
+ build :
4
+ os : ubuntu-22.04
5
+ tools :
6
+ python : " 3.8"
7
+
3
8
python :
4
- version : " 3.8"
5
9
install :
6
10
- method : pip
7
11
path : .
You can’t perform that action at this time.
0 commit comments