Merge pull request #70 from neurodatascience/pre-commit-ci-update-config #15
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: test docker | |
# test that the docker image can build and that the demo runs | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: ['*'] | |
defaults: | |
run: | |
shell: bash -l {0} | |
jobs: | |
build_and_demo: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y tree | |
- name: Clone repo | |
uses: actions/checkout@v3 | |
- name: build image | |
run: make Docker_build | |
- name: print version | |
run: make Docker_run_version | |
- name: run demo | |
run: make Docker_demo | |
- name: Check outputs | |
run: | | |
tree -L 2 --dirsfirst outputs | |
tree --dirsfirst outputs/study-ds000002 |