Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@ jobs:
- name: Setup dependencies
run: |
uv python pin ${{ matrix.python-version }}
uv export --no-managed-python --resolution ${{ matrix.resolution }} > ci-requirements.txt
uv pip install --system -r ci-requirements.txt
uv sync --resolution ${{ matrix.resolution }}

- name: Run pre-commit
if: matrix.pre-commit
Expand All @@ -58,24 +57,25 @@ jobs:
uses: pavelzw/pytest-action@510c5e90c360a185039bea56ce8b3e7e51a16507 # v2.2.0
if: matrix.pytest
with:
custom-pytest: uv run --frozen pytest
custom-arguments: --cov --junitxml=junit.xml -o junit_family=legacy

- name: Run benchmarks
uses: CodSpeedHQ/action@513a19673a831f139e8717bf45ead67e47f00044 # v3.2.0
uses: CodSpeedHQ/action@c28fe9fbe7d57a3da1b7834ae3761c1d8217612d # v3.7.0
if: matrix.codspeed
with:
token: ${{ secrets.CODSPEED_TOKEN }}
run: pytest --codspeed
run: uv run --frozen pytest --codspeed

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@13ce06bfc6bbe3ecf90edbbf1bc32fe5978ca1d3 # v5.3.1
uses: codecov/codecov-action@18283e04ce6e62d37312384ff67231eb8fd56d24 # v5.4.3
if: matrix.codecov
with:
token: ${{ secrets.CODECOV_TOKEN }}

- name: Upload test results to Codecov

uses: codecov/test-results-action@44ecb3a270cd942bdf0fa8f2ce14cb32493e810a # v1.0.3
uses: codecov/test-results-action@47f89e9acb64b76debcd5ea40642d25a4adced9f # v1.1.1
if: matrix.codecov && !cancelled()
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ minversion = "7"

[tool.coverage.run]
source = [ "src" ]
omit = [ "*/pytest-of-*/*" ]
omit = [ "*/pytest-of-*/*", "*/_temp/*" ]

[tool.coverage.report]
exclude_also = [
Expand All @@ -167,7 +167,7 @@ exclude_also = [
"class .*\\bProtocol\\):",
"@(abc\\.)?abstractmethod",
]
omit = [ "*/pytest-of-*/*" ]
omit = [ "*/pytest-of-*/*", "*/_temp/*" ]

[tool.uv]
required-version = ">=0.6.8" # Sync with README
Expand Down
Loading