From 8ca1a78cea9a5f49d7f63c9d47dc47beacefa1fd Mon Sep 17 00:00:00 2001 From: Marius S <39998+winding-lines@users.noreply.github.com> Date: Sun, 15 Nov 2026 09:20:10 -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 ea55e6e..95c924b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -70,11 +70,19 @@ jobs: - name: Format check run: pixi run -e ${{ matrix.env }} format-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: