pyerrors/.github/workflows/examples.yml

44 lines
1 KiB
YAML
Raw Permalink Normal View History

2022-05-14 12:06:37 +01:00
name: examples
on:
push:
branches:
- master
- develop
pull_request:
workflow_dispatch:
2022-05-14 12:06:37 +01:00
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.10", "3.12"]
2022-05-14 12:06:37 +01:00
steps:
- name: Checkout source
uses: actions/checkout@v4
2022-05-14 12:06:37 +01:00
- name: Setup python
uses: actions/setup-python@v5
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
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