Skip to content

Set up CI workflow to use pre-commit #30

Set up CI workflow to use pre-commit

Set up CI workflow to use pre-commit #30

Workflow file for this run

name: Run tests
on: [push]
jobs:
build:
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: ["3.6", "3.7", "3.8", "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 }}
- name: Install dependencies
run: pip install -r requirements.txt
- name: Run pre-commit
run: pre-commit run --all-files
- name: Install package
run: pip install .
- name: Run pytest
run: pytest