2022-05-14 12:06:37 +01:00
|
|
|
name: examples
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
- develop
|
|
|
|
pull_request:
|
|
|
|
schedule:
|
|
|
|
- cron: '0 4 1 * *'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
examples:
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
2023-02-19 18:30:33 +00:00
|
|
|
fail-fast: false
|
2022-05-14 12:06:37 +01:00
|
|
|
matrix:
|
|
|
|
os: [ubuntu-latest]
|
|
|
|
python-version: ["3.8", "3.10"]
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout source
|
2022-11-30 17:49:01 +00:00
|
|
|
uses: actions/checkout@v3
|
2022-05-14 12:06:37 +01:00
|
|
|
|
|
|
|
- name: Setup python
|
2022-11-30 17:49:01 +00:00
|
|
|
uses: actions/setup-python@v4
|
2022-05-14 12:06:37 +01:00
|
|
|
with:
|
|
|
|
python-version: ${{ matrix.python-version }}
|
|
|
|
|
|
|
|
- name: Install
|
|
|
|
run: |
|
2022-09-29 08:58:19 +01:00
|
|
|
sudo apt-get update
|
2022-05-14 12:06:37 +01:00
|
|
|
sudo apt-get install dvipng texlive-latex-extra texlive-fonts-recommended cm-super
|
|
|
|
python -m pip install --upgrade pip
|
|
|
|
pip install wheel
|
|
|
|
pip install .
|
|
|
|
pip install pytest
|
|
|
|
pip install nbmake
|
2023-02-19 18:42:38 +00:00
|
|
|
pip install -U matplotlib!=3.7.0 # Exclude version 3.7.0 of matplotlib as this breaks local imports of style files.
|
2022-05-14 12:06:37 +01:00
|
|
|
|
|
|
|
- name: Run tests
|
|
|
|
run: pytest -vv --nbmake examples/*.ipynb
|