From 285d5661aa1f8cb15c51e46d1a4ffa367bcdae42 Mon Sep 17 00:00:00 2001 From: Codex Security Review Date: Tue, 13 Oct 2026 22:26:05 +0200 Subject: [PATCH] ci: run the local Python regression suites tests/test_apkdiff.py and tests/test_release_workflow.py were added with no CI job, so their regression value was zero by default. Run unittest discover when tests/ exists; keep the job green on branches without it. --- .github/workflows/python-regressions.yml | 29 ++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/python-regressions.yml diff --git a/.github/workflows/python-regressions.yml b/.github/workflows/python-regressions.yml new file mode 100644 index 00000000..6317dad2 --- /dev/null +++ b/.github/workflows/python-regressions.yml @@ -0,0 +1,29 @@ +name: Python regressions + +on: + pull_request: + branches: [master] + push: + branches: [master] + +permissions: + contents: read + +jobs: + python-regressions: + runs-on: ubuntu-latest + timeout-minutes: 5 + + steps: + - uses: actions/checkout@v7 + + # The tests/ suites ship with the apkdiff and release-workflow fixes. + # On branches without them (including master until those merge) this is + # a no-op so the job stays green; once merged, every PR runs them. + - name: Run local Python regressions + run: | + if [ -d tests ]; then + python3 -m unittest discover -s tests -v + else + echo "No tests/ directory on this branch; nothing to run yet." + fi