From 7527ea0d34945f0e57da20eeb9959dc793eb4af0 Mon Sep 17 00:00:00 2001 From: Thomas Carmet <8408330+tcarmet@users.noreply.github.com> Date: Mon, 14 Oct 2024 12:30:45 -0700 Subject: [PATCH] Codecoverage report fixup for unit tests (#208) --- .github/workflows/main.yaml | 1 - tox.ini | 6 ++++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 1f8ada87..4bc15c87 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -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/codecov-action@v4.6.0 with: diff --git a/tox.ini b/tox.ini index 43fae19f..8d57c01e 100644 --- a/tox.ini +++ b/tox.ini @@ -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 =