Skip to content

feat: add CI/CD workflows and version management #1

feat: add CI/CD workflows and version management

feat: add CI/CD workflows and version management #1

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
lint-and-test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install Poetry
uses: snok/install-poetry@v1
with:
version: latest
virtualenvs-create: true
virtualenvs-in-project: true
- name: Install dependencies
run: poetry install --no-interaction
- name: Run pre-commit hooks
run: poetry run pre-commit run --all-files
- name: Run tests
run: poetry run pytest tests/ -v