Skip to content

nightly

nightly #136

Workflow file for this run

# This workflow installs the package on Python 3.8, runs the tests and builds the docs
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: nightly
# This workflow is called nightly for consistency with programming convention
# even though it is scheduled to run only once per week...
on:
schedule:
# see https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows#scheduled-events
# 05:00 UTC = 06:00 CET = 07:00 CEST
- cron: "0 5 * * TUE"
jobs:
pytest:
strategy:
matrix:
os:
- ubuntu-latest
python-version:
- '3.10'
fail-fast: false
runs-on: ${{ matrix.os }}
name: ${{ matrix.os }} py${{ matrix.python-version }}
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install Pandoc
uses: r-lib/actions/setup-pandoc@v1
- name: Install dependencies and package
run: |
python -m pip install --upgrade pip
pip install -e .[tests,optional_plotting,optional_io_formats,tutorials,docs]
- name: Test with pytest (including Matplotlib)
run: |
pytest tests --mpl
- name: Build the docs
run: |
cd docs
make html
cd ..