Skip to content

Commit

Permalink
switch to coveralls github action
Browse files Browse the repository at this point in the history
  • Loading branch information
purificant committed Dec 20, 2023
1 parent 93497ec commit 4ddf1c4
Show file tree
Hide file tree
Showing 6 changed files with 71 additions and 261 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: pip
cache-dependency-path: requirements-dev.txt

- name: Install dependencies
run: |
Expand All @@ -44,21 +46,19 @@ jobs:
run: make coverage

- name: Upload coverage data to coveralls.io
run: coveralls --service=github
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_FLAG_NAME: ${{ matrix.python-version }} on ${{ matrix.os }}
COVERALLS_PARALLEL: true
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
flag-name: ${{ matrix.python-version }} on ${{ matrix.os }}
parallel: true

coveralls:
name: Indicate completion to coveralls.io when all parallel jobs finished
needs: test
runs-on: ubuntu-latest
container: python:3-slim
steps:
- name: Finished
run: |
pip install --no-cache-dir --upgrade coveralls
coveralls --service=github --finish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel-finished: true
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@ __pycache__
.mypy_cache
# poetry build artifacts
dist
# coverage report
coverage.lcov
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ benchmark:
coverage:
coverage run -m pytest --benchmark-disable
coverage report --fail-under=100
coverage lcov # generate lcov report for coveralls github action

# lint code in local development
lint: format-code code-analysis
Expand Down
Loading

0 comments on commit 4ddf1c4

Please sign in to comment.