Skip to content

Commit d9805be

Browse files
committed
ci: fetch the ADR check into the repo and run it without the repo's conftests or addopts
1 parent 54992c9 commit d9805be

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

‎justfile‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,10 @@ adr_check_source := "https://raw.githubusercontent.com/modern-python/.github/mai
2222
adr-check:
2323
#!/usr/bin/env sh
2424
set -eu
25-
file="$(mktemp -d)/test_adr_citations.py"
26-
curl -fsSL "{{ adr_check_source }}" -o "$file"
27-
uv run --no-sync pytest --rootdir=. "$file"
25+
dir="$(mktemp -d .adr-check.XXXXXX)"
26+
trap 'rm -rf "$dir"' EXIT
27+
curl -fsSL "{{ adr_check_source }}" -o "$dir/test_adr_citations.py"
28+
uv run --no-sync pytest --rootdir=. --noconftest -o addopts= "$dir/test_adr_citations.py"
2829
2930
test *args:
3031
uv run --no-sync pytest {{ args }}

0 commit comments

Comments
 (0)