Skip to content

pre-commit update

pre-commit update #63

Workflow file for this run

---
name: build
on:
push:
branches: [main, develop]
pull_request:
branches: [main, develop]
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: ['3.10', '3.11', '3.12']
name: build - Python ${{ matrix.python-version }} (${{ matrix.os }})
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
# Python setup
- name: Set up Python environment
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
# Install build dependencies
- name: Install build dependencies
run: |
python -m pip install --upgrade pip setuptools wheel poetry pre-commit
# install
- name: Install
id: install
run: poetry install
# Run pre-commit
- name: Run pre-commit
run: pre-commit run --all-files
# Run tests
- name: Run tests
run: poetry run pytest