Skip to content

Commit 7892cc1

Browse files
committed
ci: add macos-latest target
1 parent f1f6854 commit 7892cc1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/test.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ jobs:
1212
include:
1313
- python-version: '3.7'
1414
os: ubuntu-22.04
15+
- python-version: '3.12'
16+
os: macos-latest
1517
fail-fast: false
1618
runs-on: ${{ matrix.os }}
1719
env:
@@ -38,9 +40,11 @@ jobs:
3840
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ env.cache-revision }}
3941
- name: Download minio on cache miss
4042
if: steps.cache-minio.outputs.cache-hit != 'true'
43+
env:
44+
minio-bin-url: ${{ matrix.os == 'macos-latest' && 'https://dl.min.io/server/minio/release/darwin-arm64/minio' || 'https://dl.minio.io/server/minio/release/linux-amd64/minio' }}
4145
run: |
4246
mkdir -p ~/cache
43-
test ! -e ~/cache/minio && wget -O ~/cache/minio https://dl.minio.io/server/minio/release/linux-amd64/minio || echo "Minio already in cache"
47+
test ! -e ~/cache/minio && wget -O ~/cache/minio ${{ minio-bin-url }} || echo "Minio already in cache"
4448
- name: Start a local instance of minio
4549
run: |
4650
export MINIO_ROOT_USER=Q3AM3UQ867SPQQA43P2F

0 commit comments

Comments
 (0)