@@ -16,13 +16,13 @@ jobs:
1616 fail-fast : false
1717 matrix :
1818 os : ["ubuntu-latest", "macos-latest", "windows-latest"]
19- python-version : ["3.10", "3. 11", "3.12"]
19+ python-version : ["3.11", "3.12"]
2020 numpy_ver : ["latest"]
2121 test_config : ["latest"]
2222 include :
2323 # NEP29 compliance settings
24- - python-version : " 3.9 "
25- numpy_ver : " 1.23 "
24+ - python-version : " 3.10 "
25+ numpy_ver : " 1.24 "
2626 os : ubuntu-latest
2727 test_config : " NEP29"
2828 # Operational compliance settings
@@ -70,22 +70,25 @@ jobs:
7070 run : flake8 . --count --exit-zero --max-complexity=10 --statistics
7171
7272 - name : Test with pytest
73- run : pytest
73+ run : pytest --cov=pysatSpaceWeather --cov-report xml
7474
75- - name : Publish results to coveralls
76- env :
77- GITHUB_TOKEN : ${{ secrets.github_token }}
78- COVERALLS_PARALLEL : true
79- run : coveralls --rcfile=pyproject.toml --service=github
75+ - name : Coveralls Parallel
76+ uses : coverallsapp/github-action@v2
77+ with :
78+ github-token : ${{ secrets.GITHUB_TOKEN }}
79+ flag-name : run=${{ join(matrix.*, '-') }}
80+ parallel : true
81+ format : cobertura
82+ debug : true
8083
8184 finish :
8285 name : Finish Coverage Analysis
8386 needs : build
87+ if : ${{ always() }}
8488 runs-on : ubuntu-latest
8589 steps :
8690 - name : Coveralls Finished
87- env :
88- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
89- run : |
90- pip install --upgrade coveralls
91- coveralls --service=github --finish
91+ uses : coverallsapp/github-action@v2
92+ with :
93+ github-token : ${{ secrets.GITHUB_TOKEN }}
94+ parallel-finished : true
0 commit comments