File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -76,10 +76,13 @@ jobs:
76
76
git version
77
77
78
78
# 5. Install PyTorch
79
- python3 -m pip install --pre torch torchvision --index-url https://download.pytorch.org/whl/nightly/cpu -U --quiet --root-user-action=ignore
80
-
81
- # 6. Install tensordict
82
- python3 -m pip install git+https://github.com/pytorch/tensordict.git --quiet --root-user-action=ignore
79
+ if [[ ${{ github.event_name }} == push && (${{ github.ref_type }} == tag || (${{ github.ref_type }} == branch && ${{ github.ref_name }} == release/*)) ]]; then
80
+ python3 -m pip install torch torchvision
81
+ python3 -m pip install tensordict
82
+ else
83
+ python3 -m pip install --pre torch torchvision --index-url https://download.pytorch.org/whl/nightly/cpu -U --quiet --root-user-action=ignore
84
+ python3 -m pip install git+https://github.com/pytorch/tensordict.git --quiet --root-user-action=ignore
85
+ fi
83
86
84
87
# 7. Install TorchRL
85
88
python3 setup.py develop
You can’t perform that action at this time.
0 commit comments