diff --git a/.github/workflows/tiobe.yaml b/.github/workflows/tiobe.yaml index 6456792a8..6c79c229f 100644 --- a/.github/workflows/tiobe.yaml +++ b/.github/workflows/tiobe.yaml @@ -18,8 +18,7 @@ jobs: run: pip install tox~=4.2 coverage[toml] flake8 pylint websocket-client==1.* pyyaml==6.* pytest~=7.2 pytest-operator~=0.23 - name: Generate coverage report run: | - tox -e unit - coverage xml + tox -e coverage # Annoyingly, the coverage.xml file needs to be in a .coverage folder. rm .coverage mkdir .coverage diff --git a/.gitignore b/.gitignore index 30a07a5b6..c8b24c7d0 100644 --- a/.gitignore +++ b/.gitignore @@ -8,6 +8,7 @@ venv /docsenv .vscode .coverage +coverage.xml /.tox .*.swp diff --git a/tox.ini b/tox.ini index 72a4c6256..2c7a2496d 100644 --- a/tox.ini +++ b/tox.ini @@ -113,6 +113,7 @@ deps = commands = coverage run --source={[vars]src_path} \ -m pytest --ignore={[vars]tst_path}smoke -v --tb native {posargs} + coverage xml coverage report [testenv:pebble]