diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4be2b2ab..e21fe96a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -61,6 +61,9 @@ jobs: python-version: ${{ matrix.python-version }} - run: uv run --with Django~=${{ matrix.django-version }}.0 pytest -m "not selenium" - uses: codecov/codecov-action@v5 + with: + token: ${{ secrets.CODECOV_TOKEN }} + flags: python-${{ matrix.python-version }} Selenium: needs: - standardjs @@ -74,3 +77,6 @@ jobs: - uses: astral-sh/setup-uv@v7 - run: uv run pytest -m selenium - uses: codecov/codecov-action@v5 + with: + token: ${{ secrets.CODECOV_TOKEN }} + flags: selenium diff --git a/pyproject.toml b/pyproject.toml index a4b2fe42..82395ede 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -71,7 +71,7 @@ write_to = "django_select2/_version.py" [tool.pytest.ini_options] minversion = "6.0" -addopts = "--cov --tb=short -rxs" +addopts = "--cov --cov-report=xml --cov-report=term --tb=short -rxs" testpaths = ["tests"] DJANGO_SETTINGS_MODULE = "tests.testapp.settings" filterwarnings = ["ignore::PendingDeprecationWarning", "error::RuntimeWarning"] @@ -81,6 +81,7 @@ source = ["django_select2"] [tool.coverage.report] show_missing = true +skip_covered = true [tool.isort] atomic = true