-
Notifications
You must be signed in to change notification settings - Fork 1
55 lines (47 loc) · 1.58 KB
/
run-tests-windows.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
name: Run Tests Windows
on:
workflow_dispatch:
jobs:
test:
strategy:
fail-fast: false
matrix:
os: ["windows-latest"]
matlab-version: ['R2020b', 'R2021b', 'R2022b', 'R2023b', 'R2024a']
julia-version: ['1.7', '1.8', '1.9', '1.10']
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- uses: julia-actions/install-juliaup@v2
with:
channel: ${{ matrix.julia-version }}
- name: Set up MATLAB
uses: matlab-actions/setup-matlab@v2
with:
release: ${{ matrix.matlab-version }}
cache: true
products: >
${{ contains(matrix.matlab-version, '2024') && 'MATLAB_Support_for_MinGW-w64_C/C++/Fortran_Compiler' || 'MATLAB_Support_for_MinGW-w64_C/C++_Compiler' }}
- name: Run tests
uses: matlab-actions/run-tests@v2
env:
JULIA_VERSION: ${{ matrix.julia-version }}
with:
source-folder: 'src/matlab'
select-by-folder: 'test'
strict: false
test-results-junit: test-reults/results.xml
code-coverage-cobertura: test-reults/coverage.xml
- uses: 5monkeys/cobertura-action@master
if: always()
with:
path: test-reults/coverage.xml
fail_below_threshold: false
minimum_coverage: 69
- name: Upload artifacts
if: always()
uses: actions/upload-artifact@v4
with:
path: test-reults
name: results-${{ matrix.matlab-version }}-${{ matrix.julia-version }}