Skip to content

Commit 4ddf1c4

Browse files
committed
switch to coveralls github action
1 parent 93497ec commit 4ddf1c4

File tree

6 files changed

+71
-261
lines changed

6 files changed

+71
-261
lines changed

.github/workflows/test.yaml

+11-11
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ jobs:
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

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,5 @@ __pycache__
1010
.mypy_cache
1111
# poetry build artifacts
1212
dist
13+
# coverage report
14+
coverage.lcov

Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ benchmark:
4141
coverage:
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
4647
lint: format-code code-analysis

0 commit comments

Comments
 (0)