Skip to content

update readme example (#38) #121

update readme example (#38)

update readme example (#38) #121

name: tests
on: [push]
jobs:
build:
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 ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: pip
- name: Install dependencies
run: |
pip install --upgrade pip
pip install -r requirements.txt
- name: Install package
run: pip install .[dev,pdf]
- name: Run pre-commit
run: pre-commit run --show-diff-on-failure --color=always --all-files
- name: Test with pytest
run: pytest -vv