Skip to content

Commit 9957862

Browse files
committed
Push test coverage to coveralls.io
1 parent 7a6c383 commit 9957862

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/tests.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,13 @@ jobs:
3636
- name: Run tests
3737
run: pytest tests
3838

39+
- name: Upload coverage to Coveralls
40+
if: matrix.python-version == '3.12'
41+
uses: coverallsapp/github-action@v2
42+
with:
43+
github-token: ${{ secrets.GITHUB_TOKEN }}
44+
path-to-lcov: coverage.lcov
45+
3946
e2e-tests:
4047
runs-on: ubuntu-latest
4148
strategy:

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ build-backend = "setuptools.build_meta"
4343
write_to = "ebrains_drive/_version.py"
4444

4545
[tool.pytest.ini_options]
46-
addopts = "-s -v --doctest-modules --ignore=build --ignore=dist --ignore=ebrains_drive.egg-info --ignore=setup.py --ignore=ci --cov=ebrains_drive --cov-report=term"
46+
addopts = "-s -v --doctest-modules --ignore=build --ignore=dist --ignore=ebrains_drive.egg-info --ignore=setup.py --ignore=ci --cov=ebrains_drive --cov-report=term --cov-report=lcov"
4747

4848
[tool.black]
4949
line-length = 119

0 commit comments

Comments
 (0)