Skip to content

Adds GitHub actions #11

Adds GitHub actions

Adds GitHub actions #11

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: Install poetry
run: pipx install poetry
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: "poetry"
- run: poetry install
- run: poetry run pytest
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install ruff
poetry install
- name: Lint with ruff
run: |
ruff check .
- name: Test with pytest
run: |
poetry run pytest