Skip to content

make a serializable version of FunctionalProfile and FunctionalMagnetism #415

make a serializable version of FunctionalProfile and FunctionalMagnetism

make a serializable version of FunctionalProfile and FunctionalMagnetism #415

Workflow file for this run

name: Test Refl1D
on:
push:
branches: [master]
pull_request:
branches: [master]
workflow_dispatch:
jobs:
test_and_build:
runs-on: ${{ matrix.config.os }}
strategy:
matrix:
config:
- { os: ubuntu-latest, py: 3.9 }
- { os: ubuntu-latest, py: "3.10" }
- { os: ubuntu-latest, py: "3.11", doc: 1, whl: 1 }
- { os: ubuntu-latest, py: "3.12" }
- { os: windows-latest, py: "3.12", whl: 1 }
- { os: macos-latest, py: "3.12" }
# pure python wheels
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.config.py }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.config.py }}
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
python -m pip install .[dev,webview] build setuptools wheel
python -m build
- name: Run tests
run: |
pytest -v
python check_examples.py --chisq
env:
MPLBACKEND: agg
- name: Check that the docs build (linux only)
if: matrix.config.doc == 1
run: |
pip install sphinx
make -j 4 -C doc SPHINXOPTS="-W --keep-going" html