Skip to content

Commit cae3506

Browse files
authored
Merge pull request #7766 from hugovk/m1
Test on macOS M1 where available
2 parents 15dc431 + d65f7b5 commit cae3506

File tree

2 files changed

+24
-5
lines changed

2 files changed

+24
-5
lines changed

.github/workflows/macos-install.sh

+10-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,16 @@
22

33
set -e
44

5-
brew install libtiff libjpeg openjpeg libimagequant webp little-cms2 freetype libraqm
5+
brew install \
6+
freetype \
7+
ghostscript \
8+
libimagequant \
9+
libjpeg \
10+
libraqm \
11+
libtiff \
12+
little-cms2 \
13+
openjpeg \
14+
webp
615
export PKG_CONFIG_PATH="/usr/local/opt/openblas/lib/pkgconfig"
716

817
# TODO Update condition when cffi supports 3.13

.github/workflows/test.yml

+14-4
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
fail-fast: false
3737
matrix:
3838
os: [
39-
"macos-latest",
39+
"macos-14",
4040
"ubuntu-latest",
4141
]
4242
python-version: [
@@ -50,11 +50,21 @@ jobs:
5050
"3.8",
5151
]
5252
include:
53-
- python-version: "3.9"
53+
- python-version: "3.11"
5454
PYTHONOPTIMIZE: 1
5555
REVERSE: "--reverse"
56-
- python-version: "3.8"
56+
- python-version: "3.10"
5757
PYTHONOPTIMIZE: 2
58+
# M1 only available for 3.10+
59+
- os: "macos-latest"
60+
python-version: "3.9"
61+
- os: "macos-latest"
62+
python-version: "3.8"
63+
exclude:
64+
- os: "macos-14"
65+
python-version: "3.9"
66+
- os: "macos-14"
67+
python-version: "3.8"
5868

5969
runs-on: ${{ matrix.os }}
6070
name: ${{ matrix.os }} Python ${{ matrix.python-version }}
@@ -141,7 +151,7 @@ jobs:
141151
- name: Upload coverage
142152
uses: codecov/codecov-action@v3
143153
with:
144-
flags: ${{ matrix.os == 'macos-latest' && 'GHA_macOS' || 'GHA_Ubuntu' }}
154+
flags: ${{ matrix.os == 'ubuntu-latest' && 'GHA_Ubuntu' || 'GHA_macOS' }}
145155
name: ${{ matrix.os }} Python ${{ matrix.python-version }}
146156
gcov: true
147157

0 commit comments

Comments
 (0)