Skip to content

Commit 42137bd

Browse files
committed
ci: setup Matlab interface for Python
1 parent bb11825 commit 42137bd

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

.github/workflows/ci-matlab.yml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ jobs:
1717
matrix:
1818
os: [ubuntu-24.04, macos-latest]
1919
matlab: [R2024b]
20+
python-version: ["3.12"]
2021

2122
runs-on: ${{ matrix.os }}
2223

@@ -29,6 +30,14 @@ jobs:
2930
release: ${{ matrix.matlab }}
3031
cache: true
3132

33+
- name: setup Python
34+
uses: actions/setup-python@v2
35+
with:
36+
python-version: ${{ matrix.python-version }}
37+
38+
- name: Configure Matlab Interface for Python
39+
run: matlab -batch "pyenv(Version='${{ matrix.python-version }}')"
40+
3241
- uses: actions/checkout@v4
3342

3443
- name: Lint task
@@ -46,6 +55,11 @@ jobs:
4655
runs-on: windows-latest
4756
timeout-minutes: 10
4857

58+
strategy:
59+
matrix:
60+
matlab: [R2024b]
61+
python-version: ["3.12"]
62+
4963
steps:
5064
- uses: msys2/setup-msys2@v2
5165
with:
@@ -60,9 +74,17 @@ jobs:
6074
timeout-minutes: 10
6175
uses: matlab-actions/setup-matlab@v2
6276
with:
63-
release: R2024b
77+
release: ${{ matrix.matlab }}
6478
cache: true
6579

80+
- name: setup Python
81+
uses: actions/setup-python@v2
82+
with:
83+
python-version: ${{ matrix.python-version }}
84+
85+
- name: Configure Matlab Interface for Python
86+
run: matlab -batch "pyenv(Version='${{ matrix.python-version }}')"
87+
6688
- uses: actions/checkout@v4
6789

6890
- name: Lint task

0 commit comments

Comments
 (0)