From 67dacbf5d3e9ced76501811496ec1af6d94a24b0 Mon Sep 17 00:00:00 2001 From: Jesper Friis Date: Tue, 15 Aug 2023 13:56:18 +0200 Subject: [PATCH] Only run apt-get if the command is available --- .github/workflows/ci_build_wheels.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci_build_wheels.yml b/.github/workflows/ci_build_wheels.yml index 5e6881d16..6129f902a 100644 --- a/.github/workflows/ci_build_wheels.yml +++ b/.github/workflows/ci_build_wheels.yml @@ -89,7 +89,7 @@ jobs: - name: Install rust, cargo and poetry (needed by Pydantic v2) run: | - sudo apt-get install rust cargo + python -c 'import subprocess; subprocess.check_call(["apt-get", "--help"])' && sudo apt-get install rust cargo python -m pip install -U poetry - name: Install cibuildwheel