wake-alarm/.github/workflows/pre-commit.yml
Krzysztof kuhy Rudnicki 8e60a3667a Run the free-day interop gate in CI where Flutter exists
The pre-commit job has no Flutter and no freedays venv, so the new hook
could only fail there. It now runs as its own job in python-tests.yml
(utils checkout + a venv with crdt-sync and freedays + subosito Flutter),
and the pre-commit job SKIPs that one hook, with the reason next to it.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019pBgaXSJKyY3DarYpDatDF
2026-09-11 13:55:53 +02:00

37 lines
1.1 KiB
YAML

name: pre-commit
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# Two hooks here delegate to the shared gates in kuhyx/utils. Without
# this checkout they exit 1 with "shared gate not found at
# /home/runner/utils/..." -- which is what this workflow had been doing
# on every run since those hooks were added.
- name: Check out the shared gates
uses: actions/checkout@v4
with:
repository: kuhyx/utils
path: .utils
- name: Point the delegates at that checkout
run: echo "UTILS_ROOT=$GITHUB_WORKSPACE/.utils" >> "$GITHUB_ENV"
- uses: actions/setup-python@v5
with:
python-version: "3.x"
- name: Install dependencies
run: pip install -r requirements.txt
# free-days-interop needs Flutter and the freedays venv; it runs as its
# own job in python-tests.yml, so skipping it here is not fail-open.
- uses: pre-commit/action@v3.0.1
env:
SKIP: free-days-interop