Skip to content

Commit

Permalink
Update validate_docker_images.yml
Browse files Browse the repository at this point in the history
test adding options on release channel and strip out prefix
  • Loading branch information
juliagmt-google authored May 7, 2024
1 parent 2c67925 commit 258f29b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/validate_docker_images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,17 @@ on:
- 'nightly'
- 'test'
- 'release'
push:
branches:
- '*'

jobs:
generate-matrix:
uses: pytorch/test-infra/.github/workflows/generate_docker_release_matrix.yml@main
with:
channel: ${{ inputs.channel }}
secrets: inherit

run-gpu-tests:
needs: generate-matrix
strategy:
Expand All @@ -30,11 +34,13 @@ jobs:
ref: ${{ inputs.ref || github.ref }}
job-name: cuda${{ matrix.cuda }}-cudnn${{ matrix.cudnn_version }}-${{ matrix.image_type }}
binary-matrix: ${{ toJSON(matrix) }}
docker-image: ${{matrix.docker}}
docker-image: ${{ matrix.channel == 'release' && startsWith(matrix.docker, 'ghcr.io/') ? replace(matrix.docker, 'ghcr.io/', '') : matrix.docker }} # Strip ghcr.io/ if release
timeout: 180
script: |
set -ex
echo "Using docker image: ${{ matrix.docker }}" # Print docker image
export MATRIX_GPU_ARCH_TYPE="cuda"
export MATRIX_GPU_ARCH_VERSION="${{ matrix.cuda }}"
export TARGET_OS="linux"
python test/smoke_test/smoke_test.py --package torchonly --runtime-error-check enabled

0 comments on commit 258f29b

Please sign in to comment.