1212 # Allows you to run this workflow manually from the Actions tab
1313 workflow_dispatch :
1414
15- env :
16- # needed by coveralls
17- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
18-
1915jobs :
2016 source_check :
2117 name : source check
2218 runs-on : ubuntu-latest
23- strategy :
24- fail-fast : false
2519
2620 steps :
27- - uses : actions/checkout@v2
21+ - uses : actions/checkout@v4
2822
2923 - name : Set up Python 3.9
30- uses : actions/setup-python@v2
24+ uses : actions/setup-python@v5
3125 with :
3226 python-version : 3.9
3327
3428 - name : Install dependencies
3529 run : |
3630 python -m pip install --upgrade pip
37- pip install --editable .[check]
31+ pip install --editable .[check,test]
32+ pip install "coveralls>=3.0.0"
3833
3934 - name : black check
4035 run : |
4136 python -m black --check --diff --color .
4237
38+ - name : black preview
39+ run : |
40+ python -m black --preview --diff --color .
41+
4342 - name : isort check
4443 run : |
4544 python -m isort --check --diff --color .
@@ -48,22 +47,29 @@ jobs:
4847 run : |
4948 python -m pylint src/anaflow/
5049
50+ - name : coveralls check
51+ run : |
52+ python -m pytest --cov anaflow --cov-report term-missing -v tests/
53+ python -m coveralls --service=github
54+ env :
55+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
56+
5157 build_sdist :
5258 name : sdist on ${{ matrix.os }} with py ${{ matrix.python-version }}
5359 runs-on : ${{ matrix.os }}
5460 strategy :
5561 fail-fast : false
5662 matrix :
57- os : [ubuntu-latest, windows-latest, macos-latest ]
58- python-version : ['3.7 ', '3.8 ', '3.9 ', '3.10 ', '3.11 ']
63+ os : [ubuntu-latest, windows-latest, macos-13 ]
64+ python-version : ['3.8 ', '3.9 ', '3.10 ', '3.11 ', '3.12 ']
5965
6066 steps :
61- - uses : actions/checkout@v2
67+ - uses : actions/checkout@v4
6268 with :
6369 fetch-depth : ' 0'
6470
6571 - name : Set up Python ${{ matrix.python-version }}
66- uses : actions/setup-python@v2
72+ uses : actions/setup-python@v5
6773 with :
6874 python-version : ${{ matrix.python-version }}
6975
@@ -76,13 +82,12 @@ jobs:
7682 - name : Run tests
7783 run : |
7884 python -m pytest --cov anaflow --cov-report term-missing -v tests/
79- python -m coveralls --service=github
8085
8186 - name : Build sdist
8287 run : |
8388 python -m build
8489
85- - uses : actions/upload-artifact@v2
90+ - uses : actions/upload-artifact@v3
8691 if : matrix.os == 'ubuntu-latest' && matrix.python-version == '3.9'
8792 with :
8893 path : dist
9297 runs-on : ubuntu-latest
9398
9499 steps :
95- - uses : actions/download-artifact@v2
100+ - uses : actions/download-artifact@v3
96101 with :
97102 name : artifact
98103 path : dist
0 commit comments