Skip to content

Commit 3b904d9

Browse files
committed
[CI] Do not run 'Slow' MATLAB tests
Use regular matlab action rather than the test action to obtain more flexibility.
1 parent bbc87e0 commit 3b904d9

File tree

1 file changed

+16
-27
lines changed

1 file changed

+16
-27
lines changed

.github/workflows/main.yml

Lines changed: 16 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -891,7 +891,7 @@ jobs:
891891
if: matrix.python-version == '3.11'
892892
with:
893893
path: build/lib/cantera_shared.dll
894-
name: cantera_shared-windows_2022.dll
894+
name: cantera_shared-windows-2022.dll
895895
retention-days: 2
896896

897897
windows:
@@ -958,7 +958,7 @@ jobs:
958958
if: matrix.python-version == '3.11'
959959
with:
960960
path: build/lib/cantera_shared.dll
961-
name: cantera_shared-windows_2025.dll
961+
name: cantera_shared-windows-2025.dll
962962
retention-days: 2
963963

964964
# Adapted from https://www.scivision.dev/intel-oneapi-github-actions/
@@ -1106,18 +1106,11 @@ jobs:
11061106
name: Checkout the repository
11071107
with:
11081108
persist-credentials: false
1109-
- name: Set Python version (Windows)
1110-
uses: actions/setup-python@v6
1111-
with:
1112-
python-version: "3.10"
1113-
architecture: x64
1114-
if: runner.os == 'Windows'
1115-
- name: Set Python version (macOS)
1109+
- name: Set Python version
1110+
# Python version does not matter as it is only used to run sourcegen
11161111
uses: actions/setup-python@v6
11171112
with:
11181113
python-version: "3.12"
1119-
if: runner.os == 'macOS'
1120-
# Ubuntu uses default system Python 3
11211114
- name: Install library dependencies with micromamba (Windows)
11221115
uses: mamba-org/setup-micromamba@add3a49764cedee8ee24e82dfde87f5bc2914462 # v2.0.7
11231116
with:
@@ -1144,7 +1137,7 @@ jobs:
11441137
# Install Python dependencies, which are used by 'dotnet build'
11451138
run: |
11461139
python3 -m pip install --upgrade pip setuptools wheel build
1147-
python3 -m pip install ruamel.yaml Jinja2 typing-extensions
1140+
python3 -m pip install ruamel.yaml Jinja2
11481141
- name: Setup .NET Core SDK
11491142
uses: actions/setup-dotnet@v5
11501143
with:
@@ -1164,13 +1157,13 @@ jobs:
11641157
- name: Download the Cantera shared library (.dll)
11651158
uses: actions/download-artifact@v6
11661159
with:
1167-
name: cantera_shared-windows_2022.dll
1160+
name: cantera_shared-windows-2022.dll
11681161
path: build/lib
11691162
if: matrix.os == 'windows-2022'
11701163
- name: Download the Cantera shared library (.dll)
11711164
uses: actions/download-artifact@v5
11721165
with:
1173-
name: cantera_shared-windows_2025.dll
1166+
name: cantera_shared-windows-2025.dll
11741167
path: build/lib
11751168
if: matrix.os == 'windows-2025'
11761169
- name: Download the Doxygen artifacts
@@ -1225,18 +1218,11 @@ jobs:
12251218
name: Checkout the repository
12261219
with:
12271220
persist-credentials: false
1228-
- name: Set Python version (Windows)
1229-
uses: actions/setup-python@v6
1230-
with:
1231-
python-version: "3.10"
1232-
architecture: x64
1233-
if: runner.os == 'Windows'
1234-
- name: Set Python version (macOS)
1221+
- name: Set Python version
1222+
# Python version does not matter as it is only used to run sourcegen
12351223
uses: actions/setup-python@v6
12361224
with:
12371225
python-version: "3.12"
1238-
if: runner.os == 'macOS'
1239-
# Ubuntu uses default system Python 3
12401226
- name: Install Brew dependencies (macOS)
12411227
run: |
12421228
echo "Running on `sysctl -n machdep.cpu.brand_string`"
@@ -1252,7 +1238,7 @@ jobs:
12521238
# Install Python dependencies, which are used by 'dotnet build'
12531239
run: |
12541240
python3 -m pip install --upgrade pip setuptools wheel build
1255-
python3 -m pip install ruamel.yaml Jinja2 typing-extensions
1241+
python3 -m pip install ruamel.yaml Jinja2
12561242
- name: Download the Cantera shared library (Linux)
12571243
uses: actions/download-artifact@v5
12581244
with:
@@ -1280,7 +1266,7 @@ jobs:
12801266
- name: Download the Cantera shared library (Windows)
12811267
uses: actions/download-artifact@v5
12821268
with:
1283-
name: cantera_shared-windows_2025.dll
1269+
name: cantera_shared-windows-2025.dll
12841270
path: build/lib
12851271
if: runner.os == 'Windows'
12861272
- name: Download the Doxygen artifacts
@@ -1315,6 +1301,9 @@ jobs:
13151301
addpath(genpath(ctToolboxDir));
13161302
ctBuildInterface(ctToolboxDir, ctIncludeDir, ctLibDir);
13171303
- name: Run tests
1318-
uses: matlab-actions/run-tests@a80b208946040c701ae65c1bce73ba7ec4810757 # v2.1.2
1304+
uses: matlab-actions/run-command@7102c36f8d9b02c376168901511f20260327693e # v2.3.0
13191305
with:
1320-
select-by-folder: test/matlab_experimental
1306+
command: |
1307+
ctDir = getenv('CANTERA_ROOT');
1308+
addpath(fullfile(ctDir, 'test', 'matlab_experimental'));
1309+
runMatlabInterfaceTests;

0 commit comments

Comments
 (0)