diff --git a/.github/workflows/python-test-suite.yml b/.github/workflows/python-test-suite.yml index b82987f7..e0c777c7 100644 --- a/.github/workflows/python-test-suite.yml +++ b/.github/workflows/python-test-suite.yml @@ -55,7 +55,15 @@ jobs: - name: Run the python tests suite working-directory: python - run: uv run --python ${{ matrix.python-version }} pytest tests -m "not slow" + run: | + uv run --python ${{ matrix.python-version }} pytest tests -m "not slow" + + - name: Upload coverage report to Coveralls + if: always() + working-directory: python + uses: coverallsapp/github-action@v2 + with: + path-to-coverage: coverage.xml - name: Run magika --version working-directory: python diff --git a/python/pytest.ini b/python/pytest.ini index 83371b15..7e1d7889 100644 --- a/python/pytest.ini +++ b/python/pytest.ini @@ -5,4 +5,5 @@ log_level = WARNING markers = smoketest slow - + +addopts = --cov=src/magika --cov-report=term --cov-report=xml