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
20 changes: 20 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,26 @@ jobs:
name: coverage-report-python
path: coverage.xml

# Canary: resolve the newest releases instead of the lockfile, so a breaking
# change (e.g. a new pytest major) surfaces here before it lands in uv.lock.
# Deliberately not in `status`, so an upstream release cannot block merges.
tests-latest:
name: Check newest dependencies
runs-on: ubuntu-latest
needs: [format]
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0

- name: Install uv
uses: astral-sh/setup-uv@702b425af1c366e68b4a9449a8de6dd98b63e979 # v7.1.2
with:
python-version: "3.13"

- name: Test package
run:
uv run --no-default-groups --group test --upgrade pytest
--durations=20

upload-coverage-python:
needs: tests
if: >-
Expand Down
2 changes: 1 addition & 1 deletion tests/test_immutablemap.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
class TestImmutableMap:
"""Test :class:`ImmutableMap`."""

@pytest.fixture(scope="class")
@pytest.fixture
def d(self) -> ImmutableMap[str, Any]:
"""Example immutable map."""
return ImmutableMap(a=1, b=2)
Expand Down