Skip to content

Update and rename .readthedocs.yml to .readthedocs.yaml #5

Update and rename .readthedocs.yml to .readthedocs.yaml

Update and rename .readthedocs.yml to .readthedocs.yaml #5

Workflow file for this run

name: QENS models on ubuntu
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: [3.7, 3.8, 3.9, "3.10"]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install .
- name: lint with flake8
run: |
python -m pip install flake8
python -m flake8 ./QENSmodels/*.py
python -m flake8 ./tests/*.py
python -m flake8 ./docs/examples/using_mantid/*.py
- name: run unit tests
run: |
python -m pip install pytest
python -m pytest tests
- name: run doctests
run: |
python -m pip install pytest
python -m pytest --doctest-modules ./QENSmodels
- name: build documentation
run: |
sudo apt install pandoc
python -m pip install sphinx nbsphinx sphinx_rtd_theme
pip install ".[examples]"
sphinx-build -nT -b html docs docs/_build/html