Skip to content

Commit

Permalink
ci: add macos-latest target
Browse files Browse the repository at this point in the history
  • Loading branch information
fviard committed Jan 20, 2025
1 parent f1f6854 commit bc33e68
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ jobs:
include:
- python-version: '3.7'
os: ubuntu-22.04
- python-version: '3.12'
os: macos-latest
fail-fast: false
runs-on: ${{ matrix.os }}
env:
Expand All @@ -38,9 +40,11 @@ jobs:
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ env.cache-revision }}
- name: Download minio on cache miss
if: steps.cache-minio.outputs.cache-hit != 'true'
env:
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' }}
run: |
mkdir -p ~/cache
test ! -e ~/cache/minio && wget -O ~/cache/minio https://dl.minio.io/server/minio/release/linux-amd64/minio || echo "Minio already in cache"
test ! -e ~/cache/minio && wget -O ~/cache/minio ${{ env.minio-bin-url }} || echo "Minio already in cache"
- name: Start a local instance of minio
run: |
export MINIO_ROOT_USER=Q3AM3UQ867SPQQA43P2F
Expand Down

0 comments on commit bc33e68

Please sign in to comment.