Files
poli0981andClaude Opus 5.5 753709e9ab chore(deps): weekly updates, close build-tool advisories (4.4.3) (#164)
The updates of Dependabot #159-#163 plus lucide-react / Zustand; wrangler 4.152 with regenerated Worker types; overrides.undici ^7.30.1 (miniflare pin, GHSA-xjj6-f33q-929c) and zod 4.6.7; knip follows CSS imports; cargo update (tauri 2.12.5, tokio 1.54.1); certifi / coverage / Ruff; actions/setup-python 7.1.0; version 4.4.3.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 14:15:45 +07:00

77 lines
2.1 KiB
YAML

# Lint + tests for the data pipeline, and schema validation of the catalog.
# Pushes by the admin Worker's GitHub App also trigger this,
# so every externally written data change is validated.
name: Python CI
on:
pull_request:
paths:
- 'scripts/**'
- 'tests/**'
- 'data_game/**'
- 'requirements*.txt'
- 'requirements*.in'
- 'pyproject.toml'
- '.github/python-version'
- '.github/workflows/python-ci.yml'
push:
branches: [main]
paths:
- 'scripts/**'
- 'tests/**'
- 'data_game/**'
- 'requirements*.txt'
- 'requirements*.in'
- 'pyproject.toml'
- '.github/python-version'
- '.github/workflows/python-ci.yml'
permissions: {}
concurrency:
group: python-ci-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Set up Python
uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
with:
# Not .python-version: Dependabot's pip updater reads that file and
# supports Python <= 3.14 only (CLAUDE.md gotcha 39).
python-version-file: .github/python-version
cache: pip
cache-dependency-path: |
requirements.txt
requirements-dev.txt
# Both hash-locked files at once: pip fails if their pins disagree.
# Wheels only, so no package runs a build script here.
- name: Install dependencies
run: |
pip install --require-hashes --only-binary :all: -r requirements.txt -r requirements-dev.txt
- name: Ruff
run: |
ruff check scripts tests webapp/scripts
ruff format --check scripts tests
- name: Vulture (dead code)
run: vulture
- name: Pytest (no network)
run: pytest
- name: Validate catalog data
run: python scripts/validate.py