From 157961eb08e36c7f371829ce528b1f6736e61a7e Mon Sep 17 00:00:00 2001 From: Marius S <39998+winding-lines@users.noreply.github.com> Date: Sun, 15 Nov 2026 09:20:56 -0800 Subject: [PATCH] CI: check imports with customs A customs job and makes it part of the `ci` gate: no import cycles, and names imported from the module that defines them. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/ci.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 07f2bd1..20c0400 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -60,11 +60,19 @@ jobs: - name: Unit tests run: pixi run -e ${{ matrix.env }} check + # Imports: no cycles between modules, and each name imported from the + # module that defines it (github.com/ouromo/customs). + customs: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: ouromo/customs@v0.2.0 + # The one check to require: every job above passed or, on a release-only PR, # was skipped in favour of the release job's consumer build. ci: if: ${{ always() && github.event_name != 'schedule' }} - needs: [release, release-check, test] + needs: [release, release-check, test, customs] runs-on: ubuntu-latest steps: - env: