fix(ci): use uv run instead of .venv/bin paths in CI workflow
Some checks failed
CI / ruff (push) Failing after 8s
CI / pytest (push) Failing after 0s
CI / architecture (push) Failing after 8s
CI / dependency-scanning (push) Successful in 26s
CI / audit (push) Failing after 9s
CI / docs (push) Has been skipped

The Gitea Actions runner containers don't expose .venv/bin on the
expected path. Using uv run lets uv resolve the correct environment.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-12 22:55:06 +01:00
parent 0acfa75c8e
commit 7852d09dcc

View File

@@ -34,7 +34,7 @@ jobs:
run: uv sync --frozen run: uv sync --frozen
- name: Run ruff - name: Run ruff
run: .venv/bin/ruff check . run: uv run ruff check .
# --------------------------------------------------------------------------- # ---------------------------------------------------------------------------
# Tests # Tests
@@ -84,7 +84,7 @@ jobs:
run: uv sync --frozen run: uv sync --frozen
- name: Run tests - name: Run tests
run: .venv/bin/python -m pytest tests/ -v --tb=short run: uv run python -m pytest tests/ -v --tb=short
architecture: architecture:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@@ -105,7 +105,7 @@ jobs:
run: uv sync --frozen run: uv sync --frozen
- name: Validate architecture - name: Validate architecture
run: .venv/bin/python scripts/validate/validate_architecture.py run: uv run python scripts/validate/validate_architecture.py
# --------------------------------------------------------------------------- # ---------------------------------------------------------------------------
# Security (non-blocking) # Security (non-blocking)
@@ -143,7 +143,7 @@ jobs:
run: uv sync --frozen run: uv sync --frozen
- name: Run audit - name: Run audit
run: .venv/bin/python scripts/validate/validate_audit.py run: uv run python scripts/validate/validate_audit.py
# --------------------------------------------------------------------------- # ---------------------------------------------------------------------------
# Build (docs - only on push to master) # Build (docs - only on push to master)
@@ -166,7 +166,7 @@ jobs:
run: uv sync --frozen run: uv sync --frozen
- name: Build docs - name: Build docs
run: .venv/bin/mkdocs build run: uv run mkdocs build
- name: Upload docs artifact - name: Upload docs artifact
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4