Skip to content

Commit 8ba1e54

Browse files
authored
bump Ubuntu CI image and Python version in Matlab CI job (#416)
1 parent a4e5377 commit 8ba1e54

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

.github/workflows/readme_listings.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ jobs:
109109
- run : python -c 'import numpy as np; import os; dir="readme_output/"; data=[float(np.loadtxt(dir+file)) for file in os.listdir(dir)]; print("data:", data); similar_as_first = np.array([abs(data[0]-k)/data[0] for k in data[1:]]); print("similar_as_first", similar_as_first); assert((similar_as_first < .5).all())'
110110

111111
matlab:
112-
runs-on: ubuntu-20.04
112+
runs-on: ubuntu-22.04
113113

114114
steps:
115115
- uses: actions/checkout@v2
@@ -118,16 +118,15 @@ jobs:
118118

119119
- uses: actions/setup-python@v1
120120
with:
121-
python-version: 3.8
121+
python-version: 3.9
122122

123-
- uses: jwlawson/[email protected]
123+
- uses: RalfG/[email protected]_x86_64
124124
with:
125-
cmake-version: '3.26.x'
125+
python-versions: cp39-cp39
126+
build-requirements: 'setuptools_scm'
127+
pre-build-command: 'git config --global --add safe.directory "*"'
126128

127-
- run: |
128-
echo "CC=gcc-9" >> $GITHUB_ENV
129-
echo "CXX=g++-9" >> $GITHUB_ENV
130-
VERBOSE=1 pip install --verbose -e .
129+
- run: pip install --verbose dist/*manylinux*.whl
131130

132131
- run: pip install pytest-codeblocks pytest
133132
- run: python -c "import pytest_codeblocks; code=pytest_codeblocks.extract_from_file('README.md'); f=open('readme.m', 'w'); f.writelines(block.code for block in code if block.syntax=='Matlab'); f.close()"

0 commit comments

Comments
 (0)