Skip to content

Commit 182c0b2

Browse files
committed
ci: add macos-latest target
1 parent f1f6854 commit 182c0b2

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/test.yml

Lines changed: 10 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,16 @@ 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: |-
45+
${{
46+
matrix.os == 'macos-latest' && 'https://dl.min.io/server/minio/release/darwin-arm64/minio'
47+
|| matrix.os == 'windows-latest' && 'https://dl.min.io/server/minio/release/windows-amd64/minio.exe'
48+
|| 'https://dl.minio.io/server/minio/release/linux-amd64/minio'
49+
}}
4150
run: |
4251
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"
52+
test ! -e ~/cache/minio && wget -O ~/cache/minio ${{ env.minio-bin-url }} || echo "Minio already in cache"
4453
- name: Start a local instance of minio
4554
run: |
4655
export MINIO_ROOT_USER=Q3AM3UQ867SPQQA43P2F

0 commit comments

Comments
 (0)