diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index b0dedee..7859de4 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -50,10 +50,15 @@ jobs: run: poetry install --with test --no-interaction - name: Run tests - run: poetry run pytest --cov + run: | + poetry run pytest \ + --junitxml=pytest.xml \ + --cov-report=term-missing:skip-covered \ + --cov=app tests/ | tee pytest-coverage.txt - name: Pytest coverage comment uses: MishaKav/pytest-coverage-comment@main with: pytest-coverage-path: ./pytest-coverage.txt junitxml-path: ./pytest.xml + unique-id-for-comment: ${{ matrix.python-version }} diff --git a/.gitignore b/.gitignore index e61a850..5a4ec39 100644 --- a/.gitignore +++ b/.gitignore @@ -50,6 +50,8 @@ coverage.xml *.py,cover .hypothesis/ .pytest_cache/ +pytest-coverage.txt +pytest.xml # Translations *.mo