ci: add lint workflow
This commit is contained in:
parent
a994cd869e
commit
4fc7e52352
|
|
@ -0,0 +1,31 @@
|
||||||
|
name: Lint
|
||||||
|
on: [push, pull_request]
|
||||||
|
jobs:
|
||||||
|
lint:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
python-version:
|
||||||
|
- 3.12
|
||||||
|
job:
|
||||||
|
- mypy .
|
||||||
|
- ruff format --check .
|
||||||
|
- ruff check .
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- name: Set up Python
|
||||||
|
uses: actions/setup-python@v5
|
||||||
|
with:
|
||||||
|
python-version: ${{ matrix.python-version }}
|
||||||
|
|
||||||
|
- name: Install uv
|
||||||
|
uses: astral-sh/setup-uv@v5
|
||||||
|
with:
|
||||||
|
enable-cache: true
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: uv sync --all-extras --all-groups
|
||||||
|
|
||||||
|
- run: uv run ${{ matrix.job }}
|
||||||
Loading…
Reference in New Issue