-
Notifications
You must be signed in to change notification settings - Fork 34
58 lines (46 loc) · 1.28 KB
/
matlab-tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# This workflow will install Python dependencies, run tests and lint with a
# variety of Python version
# https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Run Matlab tests
on:
push:
workflow_dispatch:
# pull_request:
#
#defaults:
# run:
# working-directory: pyat
jobs:
matlab_tests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-13, windows-latest]
steps:
- uses: actions/checkout@v4
- name: Set up python
uses: actions/setup-python@v5
with:
python-version: '3.10'
cache: pip
- name: Set up MATLAB
uses: matlab-actions/setup-matlab@v2
with:
release: R2023a
- name: Atmexall
uses: matlab-actions/run-command@v2
with:
command: run('atmat/atpath');githubsetup();
- name: Build and install at
run: python -m pip install .
- name: Run tests
uses: matlab-actions/run-command@v2
with:
command: githubrun
#
# - name: Set up Matlab engine for python
# run: python setup.py build --build-base=$(mktemp -d) install
# working-directory: /usr/local/MATLAB/R2022a/extern/engines/python
#
# - name: Test with pytest
# run: python -m pytest pyat/test_matlab