Skip to content

tests: add github actions setup for pytest #14

tests: add github actions setup for pytest

tests: add github actions setup for pytest #14

Workflow file for this run

name: CI
on: push
jobs:
lint:
name: Ruff
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Run Ruff over code
uses: chartboost/ruff-action@v1
test:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version:
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12"
name: Pytest
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: python -m pip install .[test]
- name: Run tests
run: pytest