ci: run pytest via uv run so the matrix interpreter is honored

Address code review: the previous uv venv + uv pip + uv run sequence could run pytest in a different environment than the matrix Python. Use a single uv run --python ... --with . --with pytest invocation (mirrors noxfile). Also correct the stale Black target-version note in CLAUDE.md.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Mathew Sir Guest the best
2026-05-31 00:04:34 -06:00
co-authored by Claude Opus 4.8
parent 6931e91391
commit 84e7639bf1
2 changed files with 2 additions and 11 deletions
+1 -10
View File
@@ -17,14 +17,5 @@ jobs:
- name: Install uv
uses: astral-sh/setup-uv@v5
- name: Install Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}
- name: Create venv
run: uv venv --python ${{ matrix.python-version }}
- name: Install project and pytest
run: uv pip install . pytest
- name: Run smoke tests
run: uv run pytest -v
run: uv run --python ${{ matrix.python-version }} --with . --with pytest pytest -v