Skip to content

JOSS submission materials, expanded tests, doc & packaging polish #26

JOSS submission materials, expanded tests, doc & packaging polish

JOSS submission materials, expanded tests, doc & packaging polish #26

Workflow file for this run

name: Notebooks
on:
push:
branches: [main]
paths:
- 'pyvisco/**'
- 'verification/**.ipynb'
- 'tutorials/**'
- 'sample_data/**'
- 'LinViscoFit.ipynb'
- 'pyproject.toml'
- '.github/workflows/notebooks.yml'
pull_request:
branches: [main]
paths:
- 'pyvisco/**'
- 'verification/**.ipynb'
- 'tutorials/**'
- 'sample_data/**'
- 'LinViscoFit.ipynb'
- 'pyproject.toml'
- '.github/workflows/notebooks.yml'
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
execute:
name: validate
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # setuptools-scm
- uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: pip
- name: Install
run: |
python -m pip install --upgrade pip
python -m pip install -e ".[test]"
- name: Verification notebooks
# nbval-lax: ipympl Canvas HTML repr is not cross-platform stable;
# numeric checks happen inside visco.verify.plot_fit_ANSYS.
run: |
pytest --nbval-lax \
verification/verify_freq_master.ipynb \
verification/verify_freq_raw.ipynb \
verification/verify_time_master.ipynb
- name: Voila GUI notebook
# nbval-lax: ipywidget model_ids change every run.
run: pytest --nbval-lax LinViscoFit.ipynb
- name: Tutorial notebook
# nbval-lax: figure sizes / Prony results vary slightly across platforms.
run: pytest --nbval-lax tutorials/tutorial.ipynb
- name: Tutorial scripts
run: |
python tutorials/freq_master.py
python tutorials/freq_raw.py
python tutorials/time_master.py