Files
pigway-frame-flow/.github/workflows/verify.yml
T

33 lines
1.3 KiB
YAML

name: Verify Frame Flow
on: [push, pull_request, workflow_dispatch]
jobs:
verify:
runs-on: ubuntu-latest
env:
CI_PIP_INDEX_URL: ${{ vars.CI_PIP_INDEX_URL }}
CI_PIP_FALLBACK_INDEX_URL: ${{ vars.CI_PIP_FALLBACK_INDEX_URL }}
DEBIAN_MIRROR: ${{ vars.DEBIAN_MIRROR }}
DEBIAN_SECURITY_MIRROR: ${{ vars.DEBIAN_SECURITY_MIRROR }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.14'
- name: Install CI dependencies with index diagnostics and fallback
run: python scripts/ci-install.py
- run: python -m ruff check pigway_frame_flow tests scripts
- run: python -m ruff format --check pigway_frame_flow tests scripts
- run: python -m mypy pigway_frame_flow
- run: python -m pytest -q
- run: python -m pip_audit -r requirements.lock --no-deps --disable-pip
- name: Isolated Docker build, smoke and restart verification
run: |
. ./deploy/build-cn.env
python scripts/ci-compose-verify.py
- name: Cleanup isolated Docker resources
if: always()
run: |
if [ -n "${FRAME_FLOW_CI_COMPOSE:-}" ] && [ -f "$FRAME_FLOW_CI_COMPOSE" ]; then
python scripts/ci-compose-verify.py --cleanup
fi