Skip to content

Add github action

Add github action #1

Workflow file for this run

on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: pip install
run: pip install -r requirements-dev.txt
- name: ruff check
run: ruff check .
- name: ruff format
run: ruff format --check .
- name: mypy
run: mypy .