diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 4803eb4..8e81124 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -29,6 +29,11 @@ jobs: python -m pip install invoke .[test] - name: Run integration tests run: invoke integration - - if: matrix.os == 'ubuntu-latest' && matrix.python-version == 3.8 - name: Upload codecov report - uses: codecov/codecov-action@v2 + + - if: matrix.os == 'ubuntu-latest' && matrix.python-version == 3.9 + name: Upload integration codecov report + uses: codecov/codecov-action@v4 + with: + flags: integration + file: './integration_cov.xml' + token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/unit.yml b/.github/workflows/unit.yml index 8934518..e8546b3 100644 --- a/.github/workflows/unit.yml +++ b/.github/workflows/unit.yml @@ -29,3 +29,11 @@ jobs: python -m pip install invoke .[test] - name: Run unit tests run: invoke unit + + - if: matrix.os == 'ubuntu-latest' && matrix.python-version == 3.9 + name: Upload unit codecov report + uses: codecov/codecov-action@v4 + with: + flags: unit + file: './unit_cov.xml' + token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.gitignore b/.gitignore index 90da8be..2418d46 100644 --- a/.gitignore +++ b/.gitignore @@ -46,6 +46,7 @@ coverage.xml *.cover .hypothesis/ .pytest_cache/ +*_cov.xml # Translations *.mo diff --git a/tasks.py b/tasks.py index 7710f5c..095bd59 100644 --- a/tasks.py +++ b/tasks.py @@ -31,12 +31,12 @@ def check_dependencies(c): @task def integration(c): - c.run('python -m pytest ./tests/integration --reruns 3 --cov=deepecho --cov-report=xml') + c.run('python -m pytest ./tests/integration --reruns 3 --cov=deepecho --cov-report=xml:./unit_cov.xml') @task def unit(c): - c.run('python -m pytest ./tests/unit --reruns 3') + c.run('python -m pytest ./tests/unit --reruns 3 --cov=deepecho --cov-report=xml:./integration_cov.xml') def _get_minimum_versions(dependencies, python_version):