Add CI workflow configuration for automated checks and testing
CI / checks (push) Successful in 1m4s
CI / checks (push) Successful in 1m4s
This commit is contained in:
@@ -0,0 +1,31 @@
|
|||||||
|
name: CI
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
pull_request:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
checks:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Set up uv and Python
|
||||||
|
uses: astral-sh/setup-uv@v6
|
||||||
|
with:
|
||||||
|
python-version: "3.12"
|
||||||
|
enable-cache: true
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: uv sync --locked --extra dev
|
||||||
|
|
||||||
|
- name: Run ruff
|
||||||
|
run: uv run ruff check .
|
||||||
|
|
||||||
|
- name: Run ty
|
||||||
|
run: uv run ty check
|
||||||
|
|
||||||
|
- name: Run pytest
|
||||||
|
run: uv run pytest
|
||||||
Reference in New Issue
Block a user