mirror of
https://github.com/kuhyx/screen-locker.git
synced 2026-11-10 20:47:14 +01:00
Python side: gatelock v0.7.1 -> v0.7.2 and crdt-sync v0.9.0 -> v0.9.1 (both re-cut so consumers stop resolving pre-upgrade constraints), plus every `>=` floor turned into an exact pin -- five majors among them (mypy 1 -> 2.3.1, pylint 3 -> 4.0.7, pytest 8 -> 9.1.1, pytest-cov 4 -> 7.1.0, ruff 0.8 -> 0.16.5) and mcp pinned at 2.1.1. `scripts/ci_mirror.sh` builds a clean venv from requirements.txt and runs the whole CI set: 1146 tests, 100% branch coverage, no lint or type finding. workout_app: sync_settings_ui v0.1.0 -> v0.4.1 and ten exact pins, with the flutter_secure_storage 11 chain (compileSdk 37 / AGP 9.3.2 / Gradle 9.7.1). 411 tests green, analyzer clean, release APK builds. CI's Flutter pin was 3.44.6 while `.fvmrc` says 3.47.2 -- the drift that made kuhylog red on a commit that is clean locally. Both workflows now say 3.47.2, and the gate reads that pin from now on. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CRykabMwPgDzFHcARoqpaK
33 lines
998 B
YAML
33 lines
998 B
YAML
name: pre-commit
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
pre-commit:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-python@v5
|
|
with:
|
|
python-version: "3.12"
|
|
# The flutter-analyze pre-commit hook shells out to `flutter analyze` in
|
|
# stronglift_replacement/workout_app. Pin to the version the app is
|
|
# developed against (Dart SDK ^3.12.2) so CI's analyzer matches local.
|
|
- uses: subosito/flutter-action@v2
|
|
with:
|
|
flutter-version: 3.47.2
|
|
channel: stable
|
|
cache: true
|
|
- name: Install dependencies
|
|
run: pip install -r requirements.txt
|
|
# analyze needs resolved packages (.dart_tool); the hook runs analyze
|
|
# only, so fetch deps here first.
|
|
- name: Resolve Flutter packages
|
|
run: flutter pub get
|
|
working-directory: stronglift_replacement/workout_app
|
|
- uses: pre-commit/action@v3.0.1
|