diff --git a/.github/workflows/gpu-tests.yml b/.github/workflows/gpu-tests.yml index 36e1bc2b71b..13c628ad302 100644 --- a/.github/workflows/gpu-tests.yml +++ b/.github/workflows/gpu-tests.yml @@ -16,7 +16,7 @@ concurrency: group: gpu-tests-${{ github.ref_name }}-${{ !(github.ref_protected) || github.sha }} cancel-in-progress: true -# Cherry-picked from https://github.com/pytorch/test-infra/blob/main/.github/workflows/linux_job.yml +# Cherry-picked from https://github.com/pytorch/test-infra/blob/main/.github/workflows/linux_job_v2.yml jobs: gpu-tests: @@ -25,7 +25,7 @@ jobs: pytorch-channel: [pytorch, pytorch-nightly] fail-fast: false env: - DOCKER_IMAGE: "pytorch/conda-builder:cuda12.4" + DOCKER_IMAGE: "pytorch/almalinux-builder:cuda12.4" REPOSITORY: ${{ github.repository }} PR_NUMBER: ${{ github.event.pull_request.number }} runs-on: linux.8xlarge.nvidia.gpu @@ -40,7 +40,7 @@ jobs: echo "::endgroup::" - name: Checkout repository (pytorch/test-infra) - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: # Support the use case where we need to checkout someone's fork repository: pytorch/test-infra @@ -55,7 +55,7 @@ jobs: docker-image: ${{ env.DOCKER_IMAGE }} - name: Checkout repository (${{ github.repository }}) - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: # Support the use case where we need to checkout someone's fork repository: ${{ github.repository }} @@ -139,7 +139,7 @@ jobs: - name: Run examples in container continue-on-error: false run: | - SCRIPT=$(cat << EOF + script=$(cat << EOF set -xe diff --git a/pyproject.toml b/pyproject.toml index a6aae5458ad..016c0d9eb13 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.black] line-length = 120 -target-version = ['py38', 'py39'] +target-version = ['py39', 'py311'] include = '\.pyi?$' exclude = '''