From 51fa5421447cb91a46843ccf3dce7d2726ca8bc2 Mon Sep 17 00:00:00 2001 From: Attila Gombos Date: Sun, 22 Mar 2026 09:27:29 +0100 Subject: [PATCH] Fix python CI by moving the apt repo check from step to job --- .github/workflows/python-ci.yaml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/python-ci.yaml b/.github/workflows/python-ci.yaml index a956877..52a477f 100644 --- a/.github/workflows/python-ci.yaml +++ b/.github/workflows/python-ci.yaml @@ -95,9 +95,13 @@ env: GITHUB_ACTION: "TRUE" jobs: + check-apt-repository: + uses: EffectiveRange/ci-workflows/.github/workflows/apt-repository-check.yaml@main + test: name: Run tests if: ${{ inputs.test-enabled }} + needs: check-apt-repository runs-on: ubuntu-latest permissions: contents: write @@ -191,7 +195,7 @@ jobs: build_wheel: name: Create wheel package if: always() && (needs.test.result == 'success' || needs.test.result == 'skipped') && contains(format(',{0},', inputs.package-type), ',wheel,') - needs: test + needs: [test, check-apt-repository] runs-on: ubuntu-latest permissions: contents: write @@ -225,7 +229,7 @@ jobs: build_wheel-deb: name: Create debian package with wheel and venv if: always() && (needs.test.result == 'success' || needs.test.result == 'skipped') && contains(inputs.package-type, 'wheel-deb') - needs: test + needs: [test, check-apt-repository] runs-on: ubuntu-latest strategy: matrix: @@ -273,7 +277,7 @@ jobs: build_fpm-deb: name: Create debian package with FPM if: always() && (needs.test.result == 'success' || needs.test.result == 'skipped') && contains(inputs.package-type, 'fpm-deb') - needs: test + needs: [test, check-apt-repository] runs-on: ubuntu-latest strategy: matrix: @@ -315,7 +319,7 @@ jobs: build_dh-virtualenv: name: Create debian package with dh-virtualenv if: always() && (needs.test.result == 'success' || needs.test.result == 'skipped') && contains(inputs.package-type, 'dh-virtualenv') - needs: test + needs: [test, check-apt-repository] runs-on: ubuntu-latest strategy: matrix: