Skip to content

Bump actions/checkout from 4 to 6 #6

Bump actions/checkout from 4 to 6

Bump actions/checkout from 4 to 6 #6

Workflow file for this run

name: CI
on:
push:
branches: [main, master]
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
branches: [main, master]
workflow_dispatch:
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
tests:
runs-on: ubuntu-latest
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.draft == false }}
steps:
- name: Check out
uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
- name: Compile Python files
run: |
python - <<'PY'
from pathlib import Path
import py_compile
paths = sorted(Path("Scripts").rglob("*.py")) + sorted(Path("tests").rglob("*.py"))
for path in paths:
py_compile.compile(str(path), doraise=True)
PY
- name: Validate release-facing files
run: |
python3 Scripts/QA_QC/11_validate_panel_contract.py
python3 Scripts/QA_QC/18_public_release_guard.py
python3 Scripts/QA_QC/19_docs_style_guard.py
python3 Scripts/QA_QC/05_repo_size_guard.py --max-file-size-mb 5 --top-n 25
- name: Run tests
env:
PYTEST_DISABLE_PLUGIN_AUTOLOAD: "1"
run: |
python3 -m pytest -q