@@ -26,39 +26,50 @@ jobs:
26
26
run : |
27
27
python -m pip install --upgrade pip
28
28
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 ..;
35
29
- name : Run tests
36
30
run : |
37
31
python -m pip install coverage
38
32
coverage run --source=axelrod -m unittest discover
39
33
- name : Report coverage
40
34
run : |
41
35
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 ..;
42
42
- name : Run doctests
43
43
run : |
44
44
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/.
49
45
- name : Check that all strategies are indexed
50
46
run : |
51
47
python run_strategy_indexer.py
52
48
- name : Check that strategies are added to axelrod.all_strategies
53
49
run : |
54
50
python -m pip install pylint
55
51
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
60
52
- name : Check that installs
61
53
run : |
62
54
python setup.py install
63
55
cd ..
64
56
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