26
26
strategy :
27
27
matrix :
28
28
os : [ubuntu-latest]
29
- python-version : ["3.7", "3. 8", "3.9", "3.10", "3.11"]
29
+ python-version : ["3.8", "3.9", "3.10", "3.11"]
30
30
include :
31
31
- os : windows-latest
32
32
python-version : 3.8
39
39
uses : actions/setup-python@v4
40
40
with :
41
41
python-version : ${{ matrix.python-version }}
42
+ cache : pip
42
43
- name : Install dependencies
43
44
run : |
44
45
python -m pip install --upgrade pip
60
61
strategy :
61
62
matrix :
62
63
os : [ubuntu-latest]
63
- python-version : ["3.7 ", "3.10"]
64
+ python-version : ["3.8 ", "3.10"]
64
65
65
66
runs-on : ${{ matrix.os }}
66
67
70
71
uses : actions/setup-python@v4
71
72
with :
72
73
python-version : ${{ matrix.python-version }}
74
+ cache : pip
73
75
- name : Install dependencies
74
76
run : |
75
77
python -m pip install --upgrade pip
@@ -90,13 +92,33 @@ jobs:
90
92
uses : actions/setup-python@v4
91
93
with :
92
94
python-version : " 3.9"
95
+ cache : pip
93
96
- name : Install dependencies
94
97
run : |
95
98
python -m pip install --upgrade pip
96
99
pip install -e .[rtd]
97
100
- name : Build documentation
98
101
run : sphinx-build -nW --keep-going -b ${{ matrix.format }} docs/ docs/_build/${{ matrix.format }}
99
102
103
+ # https://github.com/marketplace/actions/alls-green#why
104
+ check : # This job does nothing and is only used for the branch protection
105
+
106
+ if : always()
107
+
108
+ needs :
109
+ - pre-commit
110
+ - tests
111
+ - tests-sphinx4
112
+ - docs-build-format
113
+
114
+ runs-on : ubuntu-latest
115
+
116
+ steps :
117
+ - name : Decide whether the needed jobs succeeded or failed
118
+ uses : re-actors/alls-green@release/v1
119
+ with :
120
+ jobs : ${{ toJSON(needs) }}
121
+
100
122
publish :
101
123
102
124
name : Publish to PyPi
0 commit comments