3636 pytorch-channel : ["pytorch"]
3737 skip-distrib-tests : [1]
3838 fail-fast : false
39- runs-on : ["macos-m1-stable "]
39+ runs-on : ["macos-14 "]
4040 timeout-minutes : 60
4141
4242 steps :
7171 - name : Install uv
7272 shell : bash -l {0}
7373 run : |
74- conda shell.bash hook
74+ eval "$( conda shell.bash hook)"
7575 conda activate $CONDA_ENV
7676 pip install uv
7777
@@ -85,23 +85,23 @@ jobs:
8585 if : ${{ matrix.pytorch-channel == 'pytorch' }}
8686 shell : bash -l {0}
8787 run : |
88- conda shell.bash hook
88+ eval "$( conda shell.bash hook)"
8989 conda activate $CONDA_ENV
9090 uv pip install torch torchvision
9191
9292 - name : Install PyTorch (nightly)
9393 if : ${{ matrix.pytorch-channel == 'pytorch-nightly' }}
9494 shell : bash -l {0}
9595 run : |
96- conda shell.bash hook
96+ eval "$( conda shell.bash hook)"
9797 conda activate $CONDA_ENV
9898 uv pip install --pre torch torchvision --index-url https://download.pytorch.org/whl/nightly/cpu
9999
100100 - name : Install dependencies
101101 shell : bash -l {0}
102102 working-directory : ${{ github.repository }}
103103 run : |
104- conda shell.bash hook
104+ eval "$( conda shell.bash hook)"
105105 conda activate $CONDA_ENV
106106 # TODO: We add set -xe to explicitly fail the CI if one of the commands is failing.
107107 # Somehow the step is passing even if a subcommand failed
@@ -129,7 +129,7 @@ jobs:
129129 shell : bash -l {0}
130130 working-directory : ${{ github.repository }}
131131 run : |
132- conda shell.bash hook
132+ eval "$( conda shell.bash hook)"
133133 conda activate $CONDA_ENV
134134 SKIP_DISTRIB_TESTS=${{ matrix.skip-distrib-tests }} bash tests/run_cpu_tests.sh
135135
@@ -144,6 +144,6 @@ jobs:
144144 shell : bash -l {0}
145145 working-directory : ${{ github.repository }}
146146 run : |
147- conda shell.bash hook
147+ eval "$( conda shell.bash hook)"
148148 conda activate $CONDA_ENV
149149 python examples/mnist/mnist.py --epochs=1
0 commit comments