Skip to content

Commit 3b04445

Browse files
authored
Update GitHub Actions runner to macOS 14 (#3450)
Removing dependency on self-hosted macOS runners, in prep for migration to meta-pytorch org
1 parent 898e93d commit 3b04445

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/mps-tests.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
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:
@@ -71,7 +71,7 @@ jobs:
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

Comments
 (0)