1111 runs-on : ubuntu-latest
1212 strategy :
1313 matrix :
14- python-version : [ '3.9 ', '3.10 ', '3.11 ']
14+ python-version : [ '3.10 ', '3.11 ', '3.12', '3.13 ']
1515 name : Python ${{ matrix.python-version }} sample
1616 steps :
1717 - uses : actions/checkout@v4
@@ -26,37 +26,29 @@ jobs:
2626 path : ${{ env.pythonLocation }}
2727 key : ${{ env.pythonLocation }}-${{ hashFiles('setup.py') }}-${{ hashFiles('dev-requirements.txt') }}
2828
29- - name : Install setup tools
30- run : pip install setuptools
31-
32- - name : Install
33- run : python setup.py install
29+ - name : Install tox
30+ run : python -m pip install -U tox
3431
3532 - name : Test
36- run : python setup.py test
37-
38- - name : install coveralls
39- run : pip install coveralls
40-
41-
42- - name : Generate coverage
43- run : coverage run --include=iiif-presentation-validator.py setup.py test
33+ run : tox
4434
45- - name : Upload coverage data to coveralls.io
46- run : coveralls --service=github
47- env :
48- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
49- COVERALLS_FLAG_NAME : ${{ matrix.python-version }}
50- COVERALLS_PARALLEL : true
51-
52- Coveralls :
35+ - name : Upload coverage to Coveralls
36+ uses : coverallsapp/github-action@v2
37+ with :
38+ github-token : ${{ secrets.GITHUB_TOKEN }}
39+ format : cobertura
40+ file : coverage.xml
41+ flag-name : ${{ matrix.python-version }}
42+ parallel : true
43+
44+ coveralls-finish :
5345 needs : build
5446 runs-on : ubuntu-latest
55- container : python:3-slim
47+ if : ${{ always() }}
5648 steps :
57- - name : Coveralls Finished
58- run : |
59- pip3 install --upgrade coveralls
60- coveralls --service=github --finish
61- env :
62- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
49+ - name : Finish Coveralls parallel build
50+ uses : coverallsapp/github-action@v2
51+ with :
52+ github-token : ${{ secrets.GITHUB_TOKEN }}
53+ parallel-finished : true
54+
0 commit comments