Unify LORIS-MRI logging #275
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Integration tests | |
on: | |
pull_request: | |
push: | |
branches: | |
- 'main' | |
- '*-release' | |
env: | |
DATABASE_NAME: TestDatabase | |
DATABASE_USERNAME: TestUsername | |
DATABASE_PASSWORD: TestPassword | |
jobs: | |
docker: | |
name: Docker | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out LORIS-MRI | |
uses: actions/checkout@v4 | |
- name: Clone the LORIS core repository | |
run: git clone https://github.com/aces/Loris.git ./test/Loris | |
- name: Overwrite Raisinbread SQL files | |
run: cp -f ./test/RB_SQL/*.sql ./test/Loris/raisinbread/RB_files/ | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Build Docker database image | |
uses: docker/build-push-action@v6 | |
with: | |
context: . | |
file: ./test/db.Dockerfile | |
build-args: | | |
DATABASE_NAME=${{ env.DATABASE_NAME }} | |
DATABASE_USER=${{ env.DATABASE_USERNAME }} | |
DATABASE_PASS=${{ env.DATABASE_PASSWORD }} | |
tags: loris-db | |
load: true | |
cache-from: type=gha,scope=loris-db | |
cache-to: type=gha,scope=loris-db | |
- name: Build Docker MRI image | |
uses: docker/build-push-action@v6 | |
with: | |
context: . | |
file: ./test/mri.Dockerfile | |
build-args: | | |
DATABASE_NAME=${{ env.DATABASE_NAME }} | |
DATABASE_USER=${{ env.DATABASE_USERNAME }} | |
DATABASE_PASS=${{ env.DATABASE_PASSWORD }} | |
tags: loris-mri | |
load: true | |
cache-from: type=gha,scope=loris-mri | |
cache-to: type=gha,scope=loris-mri | |
- name: Run integration tests | |
run: docker compose --file ./test/docker-compose.yml run mri pytest python/tests/integration |