Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: Update actions #189

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
30 changes: 13 additions & 17 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: generate the Dockerfile from generate.sh
run: |
BRANCH=${{ github.event.inputs.nipype_branch }}
Expand All @@ -27,50 +27,46 @@ jobs:
# In this step, this action saves a list of existing images,
# the cache is created without them in the post run.
# It also restores the cache if it exists.
- uses: satackey/action-docker-layer-caching@v0.0.11
- uses: jpribyl/action-docker-layer-caching@v0.1.1
with:
key: tutorial-docker-cache-{hash}
key: tutorial-dlc-{hash}
restore-keys: |
tutorial-docker-cache-
layer-tutorial-docker-cache-
tutorial-dlc-
- name: build the image
run: docker build . --file Dockerfile -t nipype_tutorial:latest

test_1:
needs: build
runs-on: ubuntu-latest
steps:
- uses: satackey/action-docker-layer-caching@v0.0.11
- uses: jpribyl/action-docker-layer-caching@v0.1.1
with:
key: tutorial-docker-cache-{hash}
key: tutorial-dlc-{hash}
restore-keys: |
tutorial-docker-cache-
layer-tutorial-docker-cache-
tutorial-dlc-
- name: run test 1
run: docker run --rm nipype_tutorial:latest python /home/neuro/nipype_tutorial/test_notebooks.py 1

test_2:
needs: build
runs-on: ubuntu-latest
steps:
- uses: satackey/action-docker-layer-caching@v0.0.11
- uses: jpribyl/action-docker-layer-caching@v0.1.1
with:
key: tutorial-docker-cache-{hash}
key: tutorial-dlc-{hash}
restore-keys: |
tutorial-docker-cache-
layer-tutorial-docker-cache-
tutorial-dlc-
- name: run test 2
run: docker run --rm nipype_tutorial:latest python /home/neuro/nipype_tutorial/test_notebooks.py 2

test_3:
needs: build
runs-on: ubuntu-latest
steps:
- uses: satackey/action-docker-layer-caching@v0.0.11
- uses: jpribyl/action-docker-layer-caching@v0.1.1
with:
key: tutorial-docker-cache-{hash}
key: tutorial-dlc-{hash}
restore-keys: |
tutorial-docker-cache-
layer-tutorial-docker-cache-
tutorial-dlc-
- name: run test 3
run: docker run --rm nipype_tutorial:latest python /home/neuro/nipype_tutorial/test_notebooks.py 3