Skip to content

Commit 76000bb

Browse files
authored
CI: Collect test coverage statistics. (#64)
1 parent 3090187 commit 76000bb

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,12 @@ jobs:
4747
python -m pip freeze
4848
4949
- name: Run tests
50-
run: python -m pytest -v --slow
50+
run: |
51+
pytest --cov=aiidalab_launch -v --slow
52+
coverage json
53+
54+
- name: Upload coverage to Codecov
55+
uses: codecov/codecov-action@v2
5156

5257
test-installation-with-pipx:
5358

setup.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ pre_commit =
4848
tests =
4949
pytest==6.2.5
5050
pytest-asyncio==0.17.2
51+
pytest-cov==3.0.0
5152

5253
[flake8]
5354
ignore =

0 commit comments

Comments
 (0)