-
Notifications
You must be signed in to change notification settings - Fork 24
106 lines (81 loc) · 2.56 KB
/
Copy pathrun-unit-tests.yml
File metadata and controls
106 lines (81 loc) · 2.56 KB
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
# Copyright 2020-2026 The MathWorks, Inc.
# Workflow that contains jobs to run MATLAB-Proxy unit tests
name: Unit testing of MATLAB Proxy
on:
workflow_dispatch:
workflow_call:
jobs:
matlab_unit_tests:
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up MATLAB
uses: matlab-actions/setup-matlab@v2
- name: Run tests
uses: matlab-actions/run-tests@v2
node_tests:
timeout-minutes: 15
strategy:
# fail-fast=false runs all the jobs in strategy matrix
# irrespective of failures in a particular job, and marks
# the entire job as failed even if one job has failed
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
node-version: ['24']
runs-on: ${{ matrix.os }}
defaults:
run:
# build and test node project in gui directory
working-directory: ./gui
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}
- name: Install Node dependencies
run: npm install
- name: Build Project
run: npm run build --if-present
- name: Run Node tests
run: npm test
python_tests:
timeout-minutes: 15
strategy:
# fail-fast=false runs all the jobs in strategy matrix
# irrespective of failures in a particular job, and marks
# the entire job as failed even if one job has failed
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
python-version: ['3.10', '3.11', '3.12', '3.13', '3.14']
node-version: ['24']
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: |
python3 -m pip install --upgrade pip
python3 -m pip install wheel
python3 -m pip install .[dev]
- name: Lint with black
run: black --check .
- name: Unit Test with pytest
run: python3 -m pytest tests/unit