File tree 6 files changed +71
-261
lines changed
6 files changed +71
-261
lines changed Original file line number Diff line number Diff line change 31
31
uses : actions/setup-python@v5
32
32
with :
33
33
python-version : ${{ matrix.python-version }}
34
+ cache : pip
35
+ cache-dependency-path : requirements-dev.txt
34
36
35
37
- name : Install dependencies
36
38
run : |
@@ -44,21 +46,19 @@ jobs:
44
46
run : make coverage
45
47
46
48
- 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
52
54
53
55
coveralls :
54
56
name : Indicate completion to coveralls.io when all parallel jobs finished
55
57
needs : test
56
58
runs-on : ubuntu-latest
57
- container : python:3-slim
58
59
steps :
59
60
- 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__
10
10
.mypy_cache
11
11
# poetry build artifacts
12
12
dist
13
+ # coverage report
14
+ coverage.lcov
Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ benchmark:
41
41
coverage :
42
42
coverage run -m pytest --benchmark-disable
43
43
coverage report --fail-under=100
44
+ coverage lcov # generate lcov report for coveralls github action
44
45
45
46
# lint code in local development
46
47
lint : format-code code-analysis
You can’t perform that action at this time.
0 commit comments