Skip to content

(#30) Add pre-commit with ruff + black #55

(#30) Add pre-commit with ruff + black

(#30) Add pre-commit with ruff + black #55

Workflow file for this run

name: Tests
on:
push:
branches: [main]
paths:
- "**.py"
- "**.toml"
- "**.lock"
pull_request:
branches: [main]
types: [opened, synchronize]
paths:
- "**.py"
- "**.toml"
- "**.lock"
jobs:
Tests:
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11"]
poetry-version: ["1.2.2"]
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install poetry
uses: abatilo/actions-poetry@v2
with:
poetry-version: ${{ matrix.poetry-version }}
- name: Install dependencies
run: poetry install
- name: Test
run: make test
- name: Upload coverage
uses: codecov/codecov-action@v3