diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index fe4bbdf3..aa48a90b 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -8,11 +8,16 @@ 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) @@ -20,10 +25,18 @@ jobs: 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 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