Skip to content

Commit

Permalink
Add CI
Browse files Browse the repository at this point in the history
  • Loading branch information
hellmrf committed Dec 6, 2024
1 parent 09c3124 commit 6ec8989
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Check and lint

on:
pull_request:
types: [opened, synchronize, reopened]
push:

jobs:
consistency:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.12"]
fail-fast: false
steps:
- name: Check out
uses: actions/checkout@v4

- name: Install uv
uses: astral-sh/setup-uv@v4
with:
python-version: ${{ matrix.python-version }}

- name: Inspect dependencies
run: uv run deptry .

- name: Check lock file consistency
run: uv sync --locked

- name: Type-checking (mypy)
run: uv run mypy

- name: Linter (ruff check)
run: uv run ruff check

- name: Formatter (ruff format)
run: uv run ruff format --check

0 comments on commit 6ec8989

Please sign in to comment.