Skip to content

Commit

Permalink
Run S3 tests on Ubuntu.
Browse files Browse the repository at this point in the history
  • Loading branch information
aliddell committed Aug 30, 2024
1 parent 0fc4799 commit 9dde5c3
Showing 1 changed file with 18 additions and 7 deletions.
25 changes: 18 additions & 7 deletions .github/workflows/test_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,24 @@ jobs:
./vcpkg integrate install
shell: bash

- name: Install minio (Windows)
if: matrix.platform == 'windows-latest'
- name: Install and start minio
if: runner.os == 'Linux'
run: |
Invoke-WebRequest -Uri "https://dl.min.io/server/minio/release/windows-amd64/minio.exe" -OutFile "C:\minio.exe"
Invoke-WebRequest -Uri "https://dl.minio.io/client/mc/release/windows-amd64/mc.exe" -OutFile "C:\mc.exe"
C:\minio.exe server C:\tmp --console-address ":9001"
shell: powershell
apt update && apt install -y tmux wget
wget https://dl.min.io/server/minio/release/linux-amd64/minio -O /usr/local/bin/minio
wget https://dl.min.io/client/mc/release/linux-amd64/mc -O /usr/local/bin/mcli
chmod +x /usr/local/bin/minio
chmod +x /usr/local/bin/mcli
tmux new -d -s minio
tmux send-keys -t minio "MINIO_ROOT_USER=$MINIO_ROOT_USER MINIO_ROOT_PASSWORD=$MINIO_ROOT_PASSWORD minio server /tmp/minio --console-address :9001" Enter
sleep 5
mcli alias set $MINIO_ALIAS $MINIO_URL $MINIO_ROOT_USER $MINIO_ROOT_PASSWORD
mcli admin user svcacct add --access-key $MINIO_ACCESS_KEY --secret-key $MINIO_SECRET_KEY $MINIO_ALIAS $MINIO_ROOT_USER
mcli mb $MINIO_ALIAS/$MINIO_BUCKET
echo "ZARR_S3_ENDPOINT=$MINIO_URL" >> $GITHUB_ENV
echo "ZARR_S3_BUCKET_NAME=$MINIO_BUCKET" >> $GITHUB_ENV
echo "ZARR_S3_ACCESS_KEY_ID=$MINIO_ACCESS_KEY" >> $GITHUB_ENV
echo "ZARR_S3_SECRET_ACCESS_KEY=$MINIO_SECRET_KEY" >> $GITHUB_ENV
- name: Configure CMake
run: |
Expand All @@ -79,4 +90,4 @@ jobs:

- name: Test
working-directory: ${{github.workspace}}/build
run: ctest -C ${{env.BUILD_TYPE}} -L acquire-driver-zarr --output-on-failure
run: ctest -C ${{env.BUILD_TYPE}} -L acquire-zarr --output-on-failure

0 comments on commit 9dde5c3

Please sign in to comment.