From 28f5ade77c54f4f39ecd1fca3e409ce61a553fba Mon Sep 17 00:00:00 2001 From: Remi Gau Date: Mon, 31 Jul 2023 21:31:49 -0400 Subject: [PATCH 1/2] add worfklow to test lastes --- .github/workflows/test_latest.yml | 53 +++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 .github/workflows/test_latest.yml diff --git a/.github/workflows/test_latest.yml b/.github/workflows/test_latest.yml new file mode 100644 index 0000000..5897cc5 --- /dev/null +++ b/.github/workflows/test_latest.yml @@ -0,0 +1,53 @@ +--- +name: test latest image + +on: + push: + branches: ['*'] + schedule: + - cron: 0 0 1 * * + workflow_dispatch: + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + + test_dataset_without_session: + + runs-on: ubuntu-latest + + steps: + - name: Install dependencies + run: | + sudo apt-get update + sudo apt-get install -y tree + + - name: pull docker image + run: docker pull bids/baracus + + - name: get data + run: | + wget https://raw.githubusercontent.com/bids-apps/maintenance-tools/main/utils/get_data_from_osf.sh + bash get_data_from_osf.sh ds114_test1 + bash get_data_from_osf.sh ds114_test1_freesurfer + + - name: help + run: | + docker run -t --rm bids/baracus --help + docker run -t --rm bids/baracus --version + + - name: run + run: | + docker run --rm -ti \ + -v ${HOME}/data/ds114_test1:/data/in \ + -v ${HOME}/data/ds114_test1_freesurfer:/data/fs \ + -v ${HOME}/data/ds114_test1:/data/out \ + bids/baracus \ + /data/in /data/out participant \ + --freesurfer_dir /data/fs \ + --license_key="~/test.key" + + - name: check output + run: tree ${HOME}/data/ds114_test1 From 3e514d11bff103e83aa93c79b5c891f92a2040f5 Mon Sep 17 00:00:00 2001 From: Remi Gau Date: Mon, 31 Jul 2023 21:38:14 -0400 Subject: [PATCH 2/2] not a tty --- .github/workflows/test_latest.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test_latest.yml b/.github/workflows/test_latest.yml index 5897cc5..3bc9731 100644 --- a/.github/workflows/test_latest.yml +++ b/.github/workflows/test_latest.yml @@ -40,7 +40,7 @@ jobs: - name: run run: | - docker run --rm -ti \ + docker run --rm -t \ -v ${HOME}/data/ds114_test1:/data/in \ -v ${HOME}/data/ds114_test1_freesurfer:/data/fs \ -v ${HOME}/data/ds114_test1:/data/out \