Skip to content

Fix CI and version mismatch #2

Fix CI and version mismatch

Fix CI and version mismatch #2

Workflow file for this run

name: CI
on:
push:
branches: [ "master", "main" ]
pull_request:
branches: [ "master", "main" ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["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@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ruff pytest pytest-cov
pip install -e .
- name: Lint with Ruff
run: |
# stop the build if there are Python syntax errors or undefined names
ruff check .
# check formatting
ruff format --check .
- name: Test with pytest
run: |
pytest