Skip to content

Add unit tests for multiple python versions to CI stage #85

Add unit tests for multiple python versions to CI stage

Add unit tests for multiple python versions to CI stage #85

Workflow file for this run

name: Unit tests
on:
pull_request:
types: [opened, synchronize, reopened]
push:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
fail-fast: false
defaults:
run:
shell: bash
steps:
- name: Check out
uses: actions/checkout@v3
- name: Set up the environment
uses: ./.github/actions/setup-poetry-env
with:
python-version: ${{ matrix.python-version }}
- name: Run tests
run: poetry run pytest tests
check-docs:
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@v3
- name: Set up the environment
uses: ./.github/actions/setup-poetry-env
with:
with-docs: true
- name: Check if documentation can be built
run: poetry run mkdocs build -s