ci: fix python-lint job for containers without node (manual clone)
CI / skip-ci-check (push) Successful in 28s
CI / skip-ci-check (pull_request) Successful in 22s
CI / docker-ci (push) Successful in 23s
CI / secret-scan (push) Successful in 34s
CI / python-lint (push) Successful in 41s
CI / admin-unit (push) Successful in 48s
CI / viewer-unit (push) Successful in 1m19s
CI / docker-ci (pull_request) Successful in 23s
CI / python-lint (pull_request) Successful in 21s
CI / secret-scan (pull_request) Successful in 31s
CI / admin-unit (pull_request) Successful in 45s
CI / viewer-unit (pull_request) Successful in 1m53s
CI / e2e (push) Successful in 4m56s
CI / e2e (pull_request) Successful in 4m34s

This commit is contained in:
2026-07-26 16:04:40 -04:00
parent fc3960afa9
commit c51df649b6
+10 -5
View File
@@ -73,6 +73,8 @@ jobs:
# Ruff lint on the FastAPI backend (config in ruff.toml). Replaces the old
# flake8 `|| true` npm script that never actually gated anything.
# actions/checkout@v4 needs node inside the job container and python images
# don't ship it, so clone manually (public repo, no token needed).
python-lint:
needs: skip-ci-check
if: needs.skip-ci-check.outputs.should-skip != '1'
@@ -80,11 +82,14 @@ jobs:
container:
image: python:3.12-bookworm
steps:
- uses: actions/checkout@v4
- name: Install ruff
run: pip install "ruff==0.16.0"
- name: Ruff check
run: ruff check backend
- name: Checkout and ruff check
run: |
BRANCH="${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}"
git clone --branch "$BRANCH" --depth 1 \
"${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}.git" /tmp/src
pip install "ruff==0.16.0"
cd /tmp/src
ruff check backend
# Vitest unit tests (viewer-frontend) — landed in PR #63, wired here.
viewer-unit: