Merge pull request #33 from VisLab/main #57
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 CI | |
on: | |
push: | |
branches: ["*"] | |
pull_request: | |
branches: ["*"] | |
env: | |
BRANCH_NAME: ${{ github.event.pull_request.base.ref || github.ref_name }} | |
jobs: | |
matlab-test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v4 | |
- name: Set up MATLAB | |
uses: matlab-actions/setup-matlab@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.10' | |
- name: Install Python dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install git+https://github.com/hed-standard/hed-python.git@develop | |
- name: Run tests | |
uses: matlab-actions/run-command@v2 | |
with: | |
command: | | |
addpath(genpath("hedmat")), addpath(genpath("tests")), run_tests |