Skip to content

bump Ubuntu CI image and Python version in Matlab CI job #416

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Apr 22, 2025
15 changes: 7 additions & 8 deletions .github/workflows/readme_listings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ jobs:
- 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())'

matlab:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v2
Expand All @@ -118,16 +118,15 @@ jobs:

- uses: actions/setup-python@v1
with:
python-version: 3.8
python-version: 3.9

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

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

- run: pip install pytest-codeblocks pytest
- 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()"
Expand Down
Loading