Skip to content

Commit

Permalink
Codecoverage report fixup for unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tcarmet committed Oct 14, 2024
1 parent e292ff7 commit 9263c99
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 0 additions & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ jobs:
- name: Install tox
run: pip install tox
- run: tox -e ${{ matrix.test }}
- run: tox -e coverage-report
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
Expand Down
6 changes: 4 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,14 @@ commands = pytest bert_e/tests/unit/ --cov=bert_e --cov-report=xml {posargs}
[testenv:tests-api-mock]
deps =
pip==22.3.1
commands = coverage run -am pytest -v -k mock bert_e/tests/test_git_host.py
pytest-cov==5.0.0
commands = pytest -v -k mock bert_e/tests/test_git_host.py --cov=bert_e --cov-report=xml {posargs}

[testenv:tests-server]
deps =
pip==22.3.1
commands = coverage run -am bert_e.tests.test_server
pytest-cov==5.0.0
commands = pytest bert_e/tests/test_server.py --cov=bert_e --cov-report=xml {posargs}

[testenv:tests-noqueue]
deps =
Expand Down

0 comments on commit 9263c99

Please sign in to comment.