adding mri #7
This file contains hidden or 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: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| workflow_dispatch: | |
| concurrency: | |
| group: ci-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| test: | |
| name: Workflow Tests (${{ matrix.workflow }}, Julia ${{ matrix.julia-version }}) | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| julia-version: ["1.10", "1", "pre"] | |
| workflow: | |
| - patient_level_prediction | |
| - geospatial_census | |
| - mri_simulation | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: julia-actions/setup-julia@v2 | |
| with: | |
| version: ${{ matrix.julia-version }} | |
| - uses: julia-actions/cache@v2 | |
| - name: Add unregistered geospatial dependencies | |
| if: matrix.workflow == 'geospatial_census' | |
| run: | | |
| julia --project=src/workflows/geospatial_census src/workflows/geospatial_census/add_ipums.jl | |
| - name: Instantiate environment | |
| run: | | |
| julia --project=src/workflows/${{ matrix.workflow }} -e ' | |
| using Pkg | |
| Pkg.instantiate() | |
| ' | |
| - name: Load dependencies | |
| run: | | |
| julia --project=src/workflows/${{ matrix.workflow }} -e ' | |
| using Pkg | |
| for (_,pkg) in Pkg.dependencies() | |
| pkg.is_direct_dep || continue | |
| @eval using $(Symbol(pkg.name)) | |
| println(pkg.name) | |
| end | |
| ' | |
| - name: Prepare MRI simulation config | |
| if: matrix.workflow == 'mri_simulation' | |
| run: | | |
| cp src/workflows/mri_simulation/config.toml.example src/workflows/mri_simulation/config.toml | |
| - name: Run MRI simulation workflow | |
| if: matrix.workflow == 'mri_simulation' | |
| run: | | |
| julia --project=src/workflows/mri_simulation src/workflows/mri_simulation/run.jl |