[ci] Change macOS version (#9229)
This commit is contained in:
9
.github/workflows/tests.yml
vendored
9
.github/workflows/tests.yml
vendored
@@ -30,7 +30,7 @@ jobs:
|
||||
os:
|
||||
- "ubuntu-latest"
|
||||
- "windows-latest"
|
||||
- "macos-13"
|
||||
- "macos-latest"
|
||||
transformers:
|
||||
- null
|
||||
include: # test backward compatibility
|
||||
@@ -75,10 +75,11 @@ jobs:
|
||||
run: |
|
||||
python -m pip install "transformers==${{ matrix.transformers }}"
|
||||
|
||||
- name: Install transformers to avoid mac os ci errors
|
||||
if: ${{ matrix.os == 'macos-13' }}
|
||||
- name: Update accelerate to avoid mac os ci errors (before accelerate 1.11.0)
|
||||
if: ${{ matrix.os == 'macos-latest' }}
|
||||
run: |
|
||||
python -m pip install "transformers<=4.51.3"
|
||||
python -m pip uninstall -y accelerate
|
||||
python -m pip install "git+https://github.com/huggingface/accelerate.git"
|
||||
|
||||
- name: Cache files
|
||||
id: hf-hub-cache
|
||||
|
||||
Reference in New Issue
Block a user