2626 strategy :
2727 matrix :
2828 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"]
3030 include :
3131 - os : windows-latest
3232 python-version : 3.8
3939 uses : actions/setup-python@v4
4040 with :
4141 python-version : ${{ matrix.python-version }}
42+ cache : pip
4243 - name : Install dependencies
4344 run : |
4445 python -m pip install --upgrade pip
6061 strategy :
6162 matrix :
6263 os : [ubuntu-latest]
63- python-version : ["3.7 ", "3.10"]
64+ python-version : ["3.8 ", "3.10"]
6465
6566 runs-on : ${{ matrix.os }}
6667
7071 uses : actions/setup-python@v4
7172 with :
7273 python-version : ${{ matrix.python-version }}
74+ cache : pip
7375 - name : Install dependencies
7476 run : |
7577 python -m pip install --upgrade pip
@@ -90,13 +92,33 @@ jobs:
9092 uses : actions/setup-python@v4
9193 with :
9294 python-version : " 3.9"
95+ cache : pip
9396 - name : Install dependencies
9497 run : |
9598 python -m pip install --upgrade pip
9699 pip install -e .[rtd]
97100 - name : Build documentation
98101 run : sphinx-build -nW --keep-going -b ${{ matrix.format }} docs/ docs/_build/${{ matrix.format }}
99102
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+
100122 publish :
101123
102124 name : Publish to PyPi
0 commit comments