Skip to content

Merge pull request #33 from todofixthis/develop #21

Merge pull request #33 from todofixthis/develop

Merge pull request #33 from todofixthis/develop #21

Workflow file for this run

# https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: CI
on:
push: ~
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
# Note: Use quotes to avoid float cast - especially important if the
# version number ends with 0!
- "3.10"
- "3.11"
- "3.12"
steps:
- name: Clone repo
uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
# https://github.com/actions/setup-python#caching-packages-dependencies
cache: pip
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .
- name: Run tests
run: python -m unittest
docs:
runs-on: ubuntu-latest
steps:
- name: Clone repo
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
# https://github.com/actions/setup-python#caching-packages-dependencies
cache: pip
python-version: "3.12"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .[docs-builder]
- name: Check docs build
run: |
cd docs
mkdir -p _static
make html