From ee2d7908b7542393aed4b3ffb33102a61e8ca1d0 Mon Sep 17 00:00:00 2001 From: Dalton Alexandre Date: Thu, 29 Oct 2026 11:51:39 -0700 Subject: [PATCH] Test pushes and pull requests against the pinned hardware and cli The test job installed the v0.1.10 wheel pair on every run, but main pins hardware and cli commits that are newer than that release, and three recovery tests depend on them (capture-adt --size, manifest outputs). The job has failed on every push since the torvalds-based move. Pushes and pull requests now install the pinned submodules; tags and manual dispatches still install the published pair they release with. With the submodules installed all 79 tests pass locally. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/build.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 26e5b3f..af121a1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -41,6 +41,7 @@ jobs: - uses: actions/checkout@v4 with: persist-credentials: false + submodules: ${{ github.ref_type != 'tag' && github.event_name != 'workflow_dispatch' }} - uses: actions/setup-python@v5 with: python-version: ${{ matrix.python }} @@ -58,7 +59,17 @@ jobs: repository: OrchardLinux/cli run-id: ${{ inputs.cli_run_id }} github-token: ${{ github.token }} - - run: bash ci/dependencies --wheels-only + # Releases test the published wheel pair they ship with. Pushes and pull requests test + # the hardware and cli commits this branch pins, which may be newer than any release. + - name: Install the published wheel pair + if: github.ref_type == 'tag' || github.event_name == 'workflow_dispatch' + run: bash ci/dependencies --wheels-only + - name: Install the pinned hardware and cli submodules + if: github.ref_type != 'tag' && github.event_name != 'workflow_dispatch' + run: | + python -m venv .venv + .venv/bin/python -m pip install ./hardware ./cli + .venv/bin/python -m pip check - run: .venv/bin/python -m unittest discover -s tests -v pongo: if: github.ref_type == 'tag' || github.event_name == 'workflow_dispatch'