From b2af165d5b4ff4644ce11f7e0f54dca865b38a62 Mon Sep 17 00:00:00 2001 From: Oz Date: Wed, 29 Apr 2026 00:56:51 +0000 Subject: [PATCH] fix(ci): include lib in PYTHONPATH for legacy run-tests The webhook control-plane migration relocates the shared `oz_workflows` package from `.github/scripts/oz_workflows` to a new top-level `lib/oz_workflows`. While that migration PR (#400) is open, the legacy reusable `run-tests.yml` on main keeps running against the merge ref of every open PR, and the `PYTHONPATH=.github/scripts` it sets fails to import `oz_workflows` once a PR has performed the move. Add `lib` to `PYTHONPATH` so the reusable workflow tolerates both the pre- and post-migration repo layouts. Non-existent path entries are ignored by Python, so PRs that have not migrated yet are unaffected. Co-Authored-By: Oz --- .github/workflows/run-tests.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index c7016a2..82a276f 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -45,5 +45,10 @@ jobs: - name: Run tests if: steps.filter.outputs.has_code_changes == 'true' env: - PYTHONPATH: .github/scripts + # Include `lib` so PRs that have already moved + # `oz_workflows` to the new top-level `lib/` location + # (per the webhook control-plane migration) can still + # import it. Non-existent path entries are ignored, so + # this stays safe for PRs that have not migrated yet. + PYTHONPATH: lib:.github/scripts run: python -m unittest discover -s .github/scripts/tests