Skip to content

Modernize CI, Update Dependencies, Confirm Support For Python 3.9-3.13 #9

Modernize CI, Update Dependencies, Confirm Support For Python 3.9-3.13

Modernize CI, Update Dependencies, Confirm Support For Python 3.9-3.13 #9

Workflow file for this run

name: Run Checks
on: [ push, pull_request, workflow_dispatch ]
jobs:
checks:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["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: Install Poetry
run: curl -sSL https://install.python-poetry.org | python3 -
- name: Configure Poetry
run: poetry config virtualenvs.in-project true
- name: Load cached venv
id: cached-poetry-dependencies
uses: actions/cache@v2
with:
path: .venv
key: venv-${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('**/poetry.lock') }}
- name: Install dependencies
run: poetry install
- name: Run Ruff linter
run: poetry run ruff check . --no-fix
- name: Run Ruff formatter
run: poetry run ruff format . --check