fixes in docs formatting for the Boussinesq example; docstring re-formatting in many files (due to precommit bump) #1026
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: readme_matlab | |
defaults: | |
run: | |
shell: bash | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
schedule: | |
- cron: '0 13 * * 4' | |
jobs: | |
matlab: | |
strategy: | |
matrix: | |
# https://www.mathworks.com/support/requirements/python-compatibility.html | |
include: | |
- matlab-version: "R2021b" | |
python-version: "3.9" | |
- matlab-version: "R2024b" | |
python-version: "3.12" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- uses: actions/[email protected] | |
with: | |
python-version: ${{ matrix.python-version }} | |
- run: pip install -e . | |
- run: pip install pytest-codeblocks pytest | |
- run: python -c "import pytest_codeblocks; code=pytest_codeblocks.extract_from_file('docs/markdown/pympdata_landing.md'); f=open('readme.m', 'w'); f.writelines(block.code for block in code if block.syntax=='Matlab'); f.close()" | |
- run: cat readme.m | |
- uses: matlab-actions/[email protected] | |
with: | |
release: ${{ matrix.matlab-version }} | |
- uses: matlab-actions/[email protected] | |
with: | |
command: pe=pyenv; assert(pe.Version == "${{ matrix.python-version }}"); | |
- uses: matlab-actions/[email protected] | |
with: | |
command: readme |