Skip to content

Adds GitHub actions #12

Adds GitHub actions

Adds GitHub actions #12

Workflow file for this run

name: Run Pytest
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
# "3.9", "3.10", "3.11"
python-version: ["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: |
python -m pip install --upgrade pip
python -m pip install ruff pytest poetry
poetry install
- name: Lint with ruff
run: |
ruff check .
- name: Test with pytest
run: |
poetry run pytest