Use uv run for backend tests instead of system pip install
Some checks failed
CI / backend-tests (push) Failing after 1m13s
CI / frontend-tests (push) Successful in 27s
CI / e2e-tests (push) Has been cancelled

The uv-managed Python is externally managed and rejects --system pip
installs. Use uv run --extra dev to handle venv creation, dependency
installation, and test execution in a single step.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-21 16:43:35 +01:00
parent 00734ee233
commit 9a8a4f75f9

View File

@@ -48,11 +48,8 @@ jobs:
source "$HOME/.local/bin/env" source "$HOME/.local/bin/env"
echo "$HOME/.local/bin" >> "$GITHUB_PATH" echo "$HOME/.local/bin" >> "$GITHUB_PATH"
uv python install 3.14 uv python install 3.14
- name: Install dependencies
run: uv pip install --system --python 3.14 -e ".[dev]"
working-directory: backend
- name: Run tests - name: Run tests
run: uv run --python 3.14 pytest -q run: uv run --python 3.14 --extra dev pytest -q
working-directory: backend working-directory: backend
env: env:
TEST_DATABASE_URL: postgresql+asyncpg://postgres:postgres@localhost:5433/nuzlocke_test TEST_DATABASE_URL: postgresql+asyncpg://postgres:postgres@localhost:5433/nuzlocke_test