Skip to content
Merged
Prev Previous commit
Next Next commit
avoid installing yq on self-hosted Linux runners...
the Debian package is unfortunately discontinued, and it is simpler if we consolidate the yq calls in the same job where yq is available
  • Loading branch information
leofang authored Dec 4, 2025
commit 9fdfa6cdc510a5e3786e383920dff53f6c8791ef
11 changes: 8 additions & 3 deletions .github/workflows/test-wheel-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ jobs:
(inputs.host-platform == 'linux-aarch64' && 'arm64') }}
outputs:
MATRIX: ${{ steps.compute-matrix.outputs.MATRIX }}
OLD_BRANCH: ${{ steps.compute-matrix.outputs.OLD_BRANCH }}
steps:
- name: Checkout ${{ github.event.repository.name }}
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
Expand Down Expand Up @@ -67,6 +68,10 @@ jobs:

echo "MATRIX=${MATRIX}" | tee --append "${GITHUB_OUTPUT}"

# This job has yq already installed, so let's do it here
OLD_BRANCH=$(yq '.backport_branch' ci/versions.yml)
echo "OLD_BRANCH=${OLD_BRANCH}" >> "$GITHUB_OUTPUT"

test:
name: py${{ matrix.PY_VER }}, ${{ matrix.CUDA_VER }}, ${{ (matrix.LOCAL_CTK == '1' && 'local') || 'wheels' }}, ${{ matrix.GPU }}
needs: compute-matrix
Expand Down Expand Up @@ -99,8 +104,8 @@ jobs:
continue-on-error: false
with:
# for artifact fetching, graphics libs
dependencies: "jq yq wget libgl1 libegl1"
dependent_exes: "jq yq wget"
dependencies: "jq wget libgl1 libegl1"
dependent_exes: "jq wget"

- name: Set environment variables
env:
Expand Down Expand Up @@ -147,7 +152,7 @@ jobs:
&& apt update \
&& apt install gh -y

OLD_BRANCH=$(yq '.backport_branch' ci/versions.yml)
OLD_BRANCH=${{ needs.compute-matrix.outputs.OLD_BRANCH }}
OLD_BASENAME="cuda-bindings-python${PYTHON_VERSION_FORMATTED}-cuda*-${{ inputs.host-platform }}*"
LATEST_PRIOR_RUN_ID=$(gh run list -b ${OLD_BRANCH} -L 1 -w "ci.yml" -s completed -R NVIDIA/cuda-python --json databaseId | jq '.[]| .databaseId')
if [[ "$LATEST_PRIOR_RUN_ID" == "" ]]; then
Expand Down
Loading