Skip to content

Commit f617aed

Browse files
committed
update
update update update update update update
1 parent 089f499 commit f617aed

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

.github/actions/setup/action.yml

+9-5
Original file line numberDiff line numberDiff line change
@@ -24,24 +24,28 @@ runs:
2424
cache-dependency-path: |
2525
pyproject.toml
2626
27+
- name: Downgrade NumPy if necessary
28+
run: |
29+
[[ ${{ inputs.torch-version }} =~ ^2\.[0-2] ]] && pip install 'numpy<2'
30+
shell: bash
31+
2732
- name: Install PyTorch ${{ inputs.torch-version }}+${{ inputs.cuda-version }}
2833
if: ${{ inputs.torch-version != 'nightly' }}
2934
run: |
3035
pip install torch==${{ inputs.torch-version }}.* --extra-index-url https://download.pytorch.org/whl/${{ inputs.cuda-version }}
31-
python -c "import torch; print('PyTorch:', torch.__version__)"
32-
python -c "import torch; print('CUDA:', torch.version.cuda)"
3336
shell: bash
3437

3538
- name: Install PyTorch ${{ inputs.torch-version }}+${{ inputs.cuda-version }}
3639
if: ${{ inputs.torch-version == 'nightly' }}
3740
run: |
3841
pip install --pre torch --extra-index-url https://download.pytorch.org/whl/nightly/${{ inputs.cuda-version }}
39-
python -c "import torch; print('PyTorch:', torch.__version__)"
40-
python -c "import torch; print('CUDA:', torch.version.cuda)"
4142
shell: bash
4243

4344
- name: List installed packages
44-
run: pip list
45+
run: |
46+
pip list
47+
python -c "import torch; print('PyTorch:', torch.__version__)"
48+
python -c "import torch; print('CUDA:', torch.version.cuda)"
4549
shell: bash
4650

4751
# TODO: Include catboost in Python 3.13 CI when catboost supports it:

0 commit comments

Comments
 (0)