@@ -26,39 +26,50 @@ jobs:
2626 run : |
2727 python -m pip install --upgrade pip
2828 python -m pip install -r requirements/development.txt
29- - name : Check that documentation builds
30- run : |
31- python -m pip install sphinx
32- python -m pip install sphinx_rtd_theme
33- python -m pip install mock
34- cd docs; make clean; make html; cd ..;
3529 - name : Run tests
3630 run : |
3731 python -m pip install coverage
3832 coverage run --source=axelrod -m unittest discover
3933 - name : Report coverage
4034 run : |
4135 coverage report -m --fail-under=100
36+ - name : Check that documentation builds
37+ run : |
38+ python -m pip install sphinx
39+ python -m pip install sphinx_rtd_theme
40+ python -m pip install mock
41+ cd docs; make clean; make html; cd ..;
4242 - name : Run doctests
4343 run : |
4444 python doctests.py
45- - name : Check imports are sorted
46- run : |
47- python -m pip install "isort==4.3.21"
48- python -m isort --check-only --recursive axelrod/.
4945 - name : Check that all strategies are indexed
5046 run : |
5147 python run_strategy_indexer.py
5248 - name : Check that strategies are added to axelrod.all_strategies
5349 run : |
5450 python -m pip install pylint
5551 python -m pylint --disable=all --enable=unused-import axelrod/strategies/_strategies.py
56- - name : Check format
57- run : |
58- python -m pip install black=="22.10.0"
59- python -m black -l 80 . --check
6052 - name : Check that installs
6153 run : |
6254 python setup.py install
6355 cd ..
6456 python -c "import axelrod"
57+
58+ format-check :
59+ needs : build
60+ runs-on : ${{ matrix.os }}
61+ strategy :
62+ max-parallel : 4
63+ matrix :
64+ os : [ubuntu-latest]
65+ python-version : ["3.11"]
66+ steps :
67+ - name : Check imports are sorted
68+ run : |
69+ python -m pip install "isort==4.3.21"
70+ python -m isort --check-only --recursive axelrod/.
71+ - name : Check format
72+ run : |
73+ python -m pip install black=="22.10.0"
74+ python -m black -l 80 . --check
75+
0 commit comments