Skip to content

Update dev tools and CI #6

Update dev tools and CI

Update dev tools and CI #6

Workflow file for this run

name: CI
on:
push:
branches: ["master", "v*"]
pull_request:
branches: ["master", "v*"]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11", "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 Poetry
uses: abatilo/actions-poetry@v4
- name: Setup virtual environment
run: |
poetry config virtualenvs.create true --local
poetry config virtualenvs.in-project true --local
- uses: actions/cache@v4
name: Define cache for the virtual environment based on dependency lock file
with:
path: ./.venv
key: venv-${{ hashFiles('poetry.lock') }}
- name: Install dependencies
run: poetry install
- name: Lint and check formatting
run: poetry run ruff check
- name: Run tests
run: poetry run pytest