Skip to content

feat: update CI ad pre-commit configurations #12

feat: update CI ad pre-commit configurations

feat: update CI ad pre-commit configurations #12

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ 3.12 ]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }} and Poetry
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
poetry-version: '1.8.4' # Specify the Poetry version you need
cache: 'poetry' # Caches Poetry dependencies
- name: Install dependencies
run: poetry install
- name: Run pre-commit hooks
run: poetry run pre-commit run --all-files --show-diff-on-failure
- name: Run tests
run: poetry run pytest