32 lines
561 B
YAML
32 lines
561 B
YAML
name: Quality
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- "**"
|
|
pull_request:
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: "3.11"
|
|
|
|
- name: Install project
|
|
run: python -m pip install --upgrade pip && python -m pip install -e ".[dev]"
|
|
|
|
- name: Run tests
|
|
run: pytest -q
|
|
|
|
- name: Run Ruff
|
|
run: ruff check .
|
|
|
|
- name: Run Mypy
|
|
run: mypy app tests
|