Bump denoland/setup-deno from 1 to 2 (#734) #949
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: 'matlab: tests' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: ['*'] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
test: | |
strategy: | |
fail-fast: false | |
matrix: | |
version: [R2021a, R2023a] | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
test: [slow, fast] | |
runs-on: ${{matrix.os}} | |
steps: | |
- name: Install MATLAB | |
uses: matlab-actions/[email protected] | |
with: | |
release: ${{matrix.version}} | |
- name: Clone bids-matlab | |
uses: actions/checkout@v4 | |
with: | |
submodules: true | |
fetch-depth: 1 | |
- name: Install dependencies | |
if: matrix.os == 'ubuntu-latest' | |
run: | | |
sudo apt-get -y -qq update | |
sudo apt-get -y install unzip wget | |
- name: Install Deno | |
uses: denoland/setup-deno@v2 | |
with: | |
deno-version: v1.x | |
- name: Install bids validator | |
run: deno install -Agf -n bids-validator jsr:@bids/validator | |
- name: Install bids example | |
run: | | |
cd tests | |
make data | |
- name: Install Moxunit and MOcov | |
run: | | |
git clone https://github.com/MOxUnit/MOxUnit.git --depth 1 | |
git clone https://github.com/MOcov/MOcov.git --depth 1 | |
- name: Run slow tests | |
if: matrix.test == 'slow' | |
uses: matlab-actions/[email protected] | |
with: | |
command: run MOxUnit/MOxUnit/moxunit_set_path(); addpath(fullfile(pwd, 'MOcov', 'MOcov')); global SLOW; SLOW=true; addpath(getenv('GITHUB_WORKSPACE')); | |
success = run_tests(); assert(success); | |
- name: Run fast tests | |
if: matrix.test == 'fast' | |
uses: matlab-actions/[email protected] | |
with: | |
command: run MOxUnit/MOxUnit/moxunit_set_path(); addpath(fullfile(pwd, 'MOcov', 'MOcov')); addpath(getenv('GITHUB_WORKSPACE')); success = run_tests(); | |
assert(success); |