diff --git a/.github/workflows/build-wheels-linux.yml b/.github/workflows/build-wheels-linux.yml index f51c5ed79b6..32074e12d94 100644 --- a/.github/workflows/build-wheels-linux.yml +++ b/.github/workflows/build-wheels-linux.yml @@ -19,12 +19,12 @@ permissions: jobs: generate-matrix: - uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main + uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@release/2.6 with: package-type: wheel os: linux test-infra-repository: pytorch/test-infra - test-infra-ref: main + test-infra-ref: release/2.6 build: needs: generate-matrix strategy: @@ -35,12 +35,12 @@ jobs: smoke-test-script: test/smoke_test.py package-name: torchrl name: pytorch/rl - uses: pytorch/test-infra/.github/workflows/build_wheels_linux.yml@main + uses: pytorch/test-infra/.github/workflows/build_wheels_linux.yml@release/2.6 with: repository: ${{ matrix.repository }} ref: "" test-infra-repository: pytorch/test-infra - test-infra-ref: main + test-infra-ref: release/2.6 build-matrix: ${{ needs.generate-matrix.outputs.matrix }} package-name: ${{ matrix.package-name }} smoke-test-script: ${{ matrix.smoke-test-script }} diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 6b963ce9ca1..5f99fb12ba6 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -76,10 +76,13 @@ jobs: git version # 5. Install PyTorch - python3 -m pip install --pre torch torchvision --index-url https://download.pytorch.org/whl/nightly/cpu -U --quiet --root-user-action=ignore - - # 6. Install tensordict - python3 -m pip install git+https://github.com/pytorch/tensordict.git --quiet --root-user-action=ignore + if [[ ${{ github.event_name }} == push && (${{ github.ref_type }} == tag || (${{ github.ref_type }} == branch && ${{ github.ref_name }} == release/*)) ]]; then + python3 -m pip install torch torchvision + python3 -m pip install tensordict + else + python3 -m pip install --pre torch torchvision --index-url https://download.pytorch.org/whl/nightly/cpu -U --quiet --root-user-action=ignore + python3 -m pip install git+https://github.com/pytorch/tensordict.git --quiet --root-user-action=ignore + fi # 7. Install TorchRL python3 setup.py develop