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
2 changes: 2 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: extractions/setup-just@v4
- uses: astral-sh/setup-uv@v8.2.0
- run: uv python install 3.14
- run: uv python pin 3.14
Expand All @@ -23,6 +24,7 @@ jobs:
uv run ruff format . --check
uv run ruff check . --no-fix
uv run ty check
- run: just adr-check

pytest:
runs-on: ubuntu-latest
Expand Down
11 changes: 11 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,14 @@ lint:
uv run ruff format .
uv run ruff check . --fix
uv run ty check

adr_check_source := "https://raw.githubusercontent.com/modern-python/.github/main/tests/test_adr_citations.py"

# Tracks main on purpose: the shared check is unpinned.
adr-check:
#!/usr/bin/env sh
set -eu
dir="$(mktemp -d .adr-check.XXXXXX)"
trap 'rm -rf "$dir"' EXIT
curl -fsSL "{{ adr_check_source }}" -o "$dir/test_adr_citations.py"
uv run --no-sync pytest --rootdir=. --noconftest -o addopts= "$dir/test_adr_citations.py"
111 changes: 0 additions & 111 deletions tests/test_adr_citations.py

This file was deleted.

Loading