Skip to content

Commit

Permalink
test push_request_target
Browse files Browse the repository at this point in the history
  • Loading branch information
maximemulder committed Dec 6, 2024
1 parent c192ce4 commit 7ea8ec7
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Integration tests

on:
pull_request:
pull_request_target:
push:
branches:
- 'main'
Expand All @@ -11,14 +11,20 @@ env:
DATABASE_NAME: TestDatabase
DATABASE_USERNAME: TestUsername
DATABASE_PASSWORD: TestPassword
BUCKET_URL: https://ace-minio-1.loris.ca:9000
BUCKET_NAME: loris-rb-data
# BUCKET_URL: https://ace-minio-1.loris.ca:9000
# BUCKET_NAME: loris-rb-data
BUCKET_URL: ${{ vars.S3_BUCKET_URL }}
BUCKET_NAME: ${{ vars.S3_BUCKET_NAME }}
BUCKET_ACCESS_KEY: ${{ secrets.S3_BUCKET_ACCESS_KEY }}
BUCKET_SECRET_KEY: ${{ secrets.S3_BUCKET_SECRET_KEY }}

jobs:
docker:
name: Docker
runs-on: ubuntu-latest
steps:
- name: Print variables
run: echo ${{ env.BUCKET_URL }} ${{ env.BUCKET_NAME }}
- name: Check out LORIS-MRI
uses: actions/checkout@v4

Expand Down Expand Up @@ -70,7 +76,8 @@ jobs:
sudo mkdir /data-imaging
touch .passwd-s3fs
chmod 600 .passwd-s3fs
sudo s3fs ${{ env.BUCKET_NAME }} /data-imaging -o url=${{ env.BUCKET_URL }} -o use_path_request_style -o allow_other
echo ${{ env.BUCKET_ACCESS_KEY }}:${{ env.BUCKET_SECRET_KEY }} > .passwd-s3fs
sudo s3fs ${{ env.BUCKET_NAME }} /data-imaging -o url=${{ env.BUCKET_URL }} -o passwd_file=.passwd-s3fs -o use_path_request_style -o allow_other
- name: Run integration tests
run: docker compose --file ./test/docker-compose.yml run mri pytest python/tests/integration

0 comments on commit 7ea8ec7

Please sign in to comment.