Skip to content

new try with basic matlab test #121

new try with basic matlab test

new try with basic matlab test #121

Workflow file for this run

name: Unit tests
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
continue-on-error: false
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: ["3.10"] #["3.8", "3.9", "3.10", "3.11"]
# exclude:
# - os: macos-latest
# python-version: "3.7"
# - os: windows-latest
# python-version: "3.7"
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
# You can test your matrix by printing the current Python version
- name: Display Python version
run: python -c "import sys; print(sys.version)"
# Sets up MATLAB on the GitHub Actions runner
- name: Setup MATLAB
uses: matlab-actions/setup-matlab@v1
with:
release: R2023a
- name: Prepend MATLAB to PATH on Windows (PowerShell)
if: runner.os == 'Windows'
run: echo "C:\Program Files\MATLAB\R2023a\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
- name: Prepend MATLAB to PATH on Linux
if: runner.os == 'Linux'
run: echo "/usr/local/MATLAB/R2023a/bin/maci64" >> $GITHUB_PATH
- name: Prepend MATLAB to PATH on macOS
if: runner.os == 'macOS'
run: echo "/Applications/MATLAB_R2023a.app/bin" >> $GITHUB_PATH
# Installs other dependenvies
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Test with pytest
run: |
pip install pytest pytest-cov
python -m pytest --doctest-modules --junitxml=junit/test-results.xml --cov=. --cov-report=xml --cov-report=html