Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 23 additions & 4 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,43 @@ on:

jobs:
tests:
runs-on: ubuntu-20.04
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-20.04
- macos-latest
steps:
- name: Set up system
- name: Set up system (Ubuntu)
if: startsWith(matrix.os, 'ubuntu')
shell: bash
run: |
bash <(wget -q -O- http://neuro.debian.net/_files/neurodebian-travis.sh)
sudo apt-get update -qq
sudo apt-get install eatmydata
sudo eatmydata apt-get install singularity-container gnupg moreutils strace
sudo eatmydata apt-get install datalad datalad-container

- name: Set up system (macOS)
if: startsWith(matrix.os, 'macos')
run: |
python3 -m venv ~/venv
. ~/venv/bin/activate
pip install datalad-container datalad-installer
datalad-installer -l DEBUG --sudo ok git-annex -m brew

- name: Configure Git
run: |
git config --global user.email "test@example.com"
git config --global user.name "CI Almighty"


- name: Checkout this repository
uses: actions/checkout@v4

- name: Test example in the README.md
run: bash <(sed -n -e '/^ *#!/,/^```$/p' README.md | grep -v '```')
run: |
if [ -d ~/venv ]
then . ~/venv/bin/activate
fi
bash <(sed -n -e '/^ *#!/,/^```$/p' README.md | grep -v '```')