@@ -5,43 +5,42 @@ name: pytest
55
66on :
77 push :
8- branches : [ "master" ]
8+ branches : ["master"]
99 pull_request :
10- branches : [ "master" ]
10+ branches : ["master"]
1111
1212jobs :
13- pytest :
14- name : py${{ matrix.python-version }} on ${{ matrix.os }}
15- runs-on : ${{ matrix.os }}
16- env :
17- MPLBACKEND : Agg # https://github.com/orgs/community/discussions/26434
18- strategy :
19- matrix :
20- os : [ubuntu-latest, macos-latest, windows-latest]
21- python-version : ["3.8", "3.9", "3.10", "3.11", "3.12"]
22- exclude :
23- - os : macos-latest
24- python-version : " 3.8"
25- steps :
26- - uses : actions/checkout@v3
27- - name : Set up Python ${{ matrix.python-version }}
28- uses : actions/setup-python@v4
29- with :
30- python-version : ${{ matrix.python-version }}
31- cache : ' pip'
32- - name : Install dependencies
33- run : |
34- pip install -r requirements.txt
35- pip install pytest isort black flake8
36- - name : Test with pytest
37- run : |
38- pytest ./tests
39- - name : Check with isort
40- run : |
41- isort --check --diff .
42- - name : Check with black
43- run : |
44- black --check --diff .
45- - name : Check with flake8
46- run : |
47- flake8 --show-source --statistics .
13+ pytest :
14+ name : py${{ matrix.python-version }} on ${{ matrix.os }}
15+ runs-on : ${{ matrix.os }}
16+ env :
17+ MPLBACKEND : Agg # https://github.com/orgs/community/discussions/26434
18+ strategy :
19+ matrix :
20+ os : [ubuntu-latest, macos-latest, windows-latest]
21+ python-version : ["3.9", "3.10", "3.11", "3.12"]
22+
23+ steps :
24+ - uses : actions/checkout@v4
25+ - name : Set up Python ${{ matrix.python-version }}
26+ uses : actions/setup-python@v5
27+ with :
28+ python-version : ${{ matrix.python-version }}
29+ cache : " pip"
30+ - name : Install dependencies
31+ run : |
32+ pip install -r requirements.txt
33+ pip install pytest isort black flake8
34+ pip install ecos
35+ - name : Test with pytest
36+ run : |
37+ pytest ./tests
38+ - name : Check with isort
39+ run : |
40+ isort --check --diff .
41+ - name : Check with black
42+ run : |
43+ black --check --diff .
44+ - name : Check with flake8
45+ run : |
46+ flake8 --show-source --statistics .
0 commit comments