File tree Expand file tree Collapse file tree 6 files changed +71
-261
lines changed
Expand file tree Collapse file tree 6 files changed +71
-261
lines changed Original file line number Diff line number Diff line change 3131 uses : actions/setup-python@v5
3232 with :
3333 python-version : ${{ matrix.python-version }}
34+ cache : pip
35+ cache-dependency-path : requirements-dev.txt
3436
3537 - name : Install dependencies
3638 run : |
@@ -44,21 +46,19 @@ jobs:
4446 run : make coverage
4547
4648 - name : Upload coverage data to coveralls.io
47- run : coveralls --service= github
48- env :
49- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
50- COVERALLS_FLAG_NAME : ${{ matrix.python-version }} on ${{ matrix.os }}
51- COVERALLS_PARALLEL : true
49+ uses : coverallsapp/ github-action@v2
50+ with :
51+ github-token : ${{ secrets.GITHUB_TOKEN }}
52+ flag-name : ${{ matrix.python-version }} on ${{ matrix.os }}
53+ parallel : true
5254
5355 coveralls :
5456 name : Indicate completion to coveralls.io when all parallel jobs finished
5557 needs : test
5658 runs-on : ubuntu-latest
57- container : python:3-slim
5859 steps :
5960 - name : Finished
60- run : |
61- pip install --no-cache-dir --upgrade coveralls
62- coveralls --service=github --finish
63- env :
64- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
61+ uses : coverallsapp/github-action@v2
62+ with :
63+ github-token : ${{ secrets.GITHUB_TOKEN }}
64+ parallel-finished : true
Original file line number Diff line number Diff line change @@ -10,3 +10,5 @@ __pycache__
1010.mypy_cache
1111# poetry build artifacts
1212dist
13+ # coverage report
14+ coverage.lcov
Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ benchmark:
4141coverage :
4242 coverage run -m pytest --benchmark-disable
4343 coverage report --fail-under=100
44+ coverage lcov # generate lcov report for coveralls github action
4445
4546# lint code in local development
4647lint : format-code code-analysis
You can’t perform that action at this time.
0 commit comments