Skip to content

Merge pull request #8 from m3brown/cleanup #21

Merge pull request #8 from m3brown/cleanup

Merge pull request #8 from m3brown/cleanup #21

Workflow file for this run

name: Unit tests
# Influenced by https://docs.github.com/en/actions/use-cases-and-examples/building-and-testing/building-and-testing-python
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements-test.txt
- name: Test with pytest
run: |
pytest --junitxml=junit/test-results.xml --cov --cov-report=xml