Skip to content

Commit a9d83df

Browse files
authored
Merge main into add-msl-methods
2 parents 519c031 + fd10740 commit a9d83df

3 files changed

Lines changed: 410 additions & 351 deletions

File tree

.github/workflows/check-build-deploy.yaml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,8 @@ jobs:
133133
pytest:
134134
needs: [uv-check]
135135
runs-on: ubuntu-latest
136+
permissions:
137+
id-token: write
136138
env:
137139
UV_NO_SYNC: true
138140
UV_FROZEN: true
@@ -165,7 +167,19 @@ jobs:
165167
key: pytest|${{steps.store-hashed-python-version.outputs.hashed_python_version}}
166168

167169
- name: Run pytest
168-
run: uv run -- pytest # TODO: Add GitHub workflows output format
170+
run: uv run pytest --cov --cov-branch --cov-report=xml --junitxml=junit.xml
171+
172+
- name: Upload test results to Codecov
173+
if: ${{ !cancelled() }}
174+
uses: codecov/test-results-action@v1
175+
with:
176+
use_oidc: true
177+
178+
- name: Upload coverage report to Codecov
179+
uses: codecov/codecov-action@v5
180+
if: ${{ !cancelled() }}
181+
with:
182+
use_oidc: true
169183

170184
ruff-lint:
171185
runs-on: ubuntu-latest

pyproject.toml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ main = [
2121
"validators>=0.34",
2222
]
2323
pre-commit = ["pre-commit>=4.0"]
24-
test = ["pytest>=8.3"]
24+
test = ["pytest-cov>=6.1", "pytest>=8.3"]
2525
type-check = ["django-stubs[compatible-mypy]>=5.1", "mypy>=1.13", "types-beautifulsoup4>=4.12"]
2626

2727
[project] # TODO: Remove [project] table once https://github.com/astral-sh/uv/issues/8582 is completed
@@ -208,6 +208,12 @@ parametrize-values-type = "tuple"
208208
keep-runtime-typing = true
209209

210210

211+
[tool.coverage.report]
212+
exclude_also = ["if TYPE_CHECKING:"]
213+
skip_covered = true
214+
sort = "cover"
215+
216+
211217
[tool.pymarkdown]
212218
extensions.front-matter.enabled = true
213219
mode.strict-config = true

0 commit comments

Comments
 (0)