Skip to content

Commit 7f73c9c

Browse files
committed
fix and switch order.
1 parent d41950f commit 7f73c9c

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

.github/workflows/unit_test.yaml

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,6 @@ jobs:
2525
run: |
2626
source .github/workflows/activate_conda_env.sh
2727
python -m pip install --upgrade pip
28-
- uses: Jimver/cuda-toolkit@master
29-
id: cuda-toolkit
30-
with:
31-
cuda: '12.9.0'
32-
log-file-suffix: '${{matrix.python-version}}.txt'
33-
- name: Check CUDA version
34-
run: |
35-
sudo chmod -R 777 $CUDA_PATH
36-
$CUDA_PATH/bin/nvcc --version
37-
nvidia-smi
3828
- name: Install pytorch
3929
run: |
4030
source .github/workflows/activate_conda_env.sh
@@ -43,6 +33,8 @@ jobs:
4333
run: |
4434
source .github/workflows/activate_conda_env.sh
4535
python -m pip install monarch-no-torch==0.1.0.dev20250826 --find-links assets/ci
36+
- name: Add GitHub.com to known_hosts
37+
run: ssh-keyscan github.com >> ~/.ssh/known_hosts
4638
- name: Install torchstore
4739
run: |
4840
source .github/workflows/activate_conda_env.sh
@@ -53,6 +45,16 @@ jobs:
5345
run: |
5446
source .github/workflows/activate_conda_env.sh
5547
python -m pip install --no-build-isolation -e ".[dev]"
48+
- uses: Jimver/cuda-toolkit@master
49+
id: cuda-toolkit
50+
with:
51+
cuda: '12.9.0'
52+
log-file-suffix: '${{matrix.python-version}}.txt'
53+
- name: Check CUDA version
54+
run: |
55+
sudo chmod -R 777 $CUDA_PATH
56+
$CUDA_PATH/bin/nvcc --version
57+
nvidia-smi
5658
- name: Run unit tests with coverage
5759
# TODO add all tests
5860
run: |

0 commit comments

Comments
 (0)