Skip to content

windows

windows #10

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 }}