Skip to content

Add 1 NeuroDesk images with 1 registered #113

Add 1 NeuroDesk images with 1 registered

Add 1 NeuroDesk images with 1 registered #113

Workflow file for this run

name: Tests
on:
push:
pull_request:
jobs:
base-test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- macos-latest
- ubuntu-20.04
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Install dependencies (Ubuntu)
if: startsWith(matrix.os, 'ubuntu')
run: |
# So we get all backports etc
bash <(wget -q -O- http://neuro.debian.net/_files/neurodebian-travis.sh)
sudo apt-get update -qq
sudo apt-get install eatmydata # to speedup some installations
sudo eatmydata apt-get install singularity-container shellcheck bats git-annex-standalone
- name: Install dependencies (macOS)
if: startsWith(matrix.os, 'macos')
run: |
HOMEBREW_NO_AUTO_UPDATE=1 brew install shellcheck
HOMEBREW_NO_AUTO_UPDATE=1 brew install git-annex
HOMEBREW_NO_AUTO_UPDATE=1 brew install bats-core
sudo cp ci/dummy_docker /usr/local/bin/docker
- name: Configure Git identity
run: |
git config --global user.email "test@example.com"
git config --global user.name "CI Almighty"
- name: Fetch git-annex data
run: |
git fetch origin git-annex
git remote add --fetch datalad.datasets.org http://datasets.datalad.org/repronim/containers/.git
git annex upgrade # we need v7 for the unlocked test img
- name: Shellcheck scripts
run: |
find . -name .git -prune -o -type f \
'!' '(' -name '*.txt' -o -name '*.md' ')' \
-exec grep -q -m1 '^#!/bin/\(ba\|da\|k\)\?sh' {} ';' \
-print0 \
| xargs -0 shellcheck
- name: Run script tests
run: bats -t scripts/tests
# Keeping just in case to debug fails
#- name: Setup tmate session
# if: ${{ failure() }}
# uses: mxschmitt/action-tmate@v3