diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 8ddd884b..a103561d 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -36,11 +36,24 @@ jobs: run: uv sync --all-extras --dev - name: Run tests - run: uv run inv pytest --junit --no-pty --base + run: uv run python -m pytest --cov --cov-config=pyproject.toml --cov-report=xml tests - name: Run isolated tests - run: uv run inv pytest --junit --no-pty --isolated + run: uv run python -m pytest --cov --cov-config=pyproject.toml --cov-report=xml tests_isolated - - name: Upload coverage reports to Codecov with GitHub Action on Python 3.13 for each OS + - name: Upload test results to Codecov + if: ${{ !cancelled() }} + uses: codecov/test-results-action@v1 + with: + flags: python${{ matrix.python-version }} + name: codecov-umbrella-test-results + token: ${{ secrets.CODECOV_TOKEN }} + - name: Upload coverage to Codecov uses: codecov/codecov-action@v5 - if: ${{ matrix.python-version == '3.13' }} + with: + env_vars: OS,PYTHON + fail_ci_if_error: true + flags: unittests + name: codecov-umbrella + token: ${{ secrets.CODECOV_TOKEN }} + verbose: true