-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (32 loc) · 811 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: CI
on:
pull_request:
branches: [ main ]
jobs:
build:
name: continuous-integration
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- '3.10'
- '3.13'
steps:
- name: Clone repo
uses: actions/checkout@v4
- name: Set the python version
run: echo "UV_PYTHON=${{ matrix.python-version }}" >> $GITHUB_ENV
- name: Setup uv
uses: astral-sh/setup-uv@v3
with:
version: "0.5.4"
- name: Install extras
run: uv sync --group extras
- name: Linting check
run: uv run ruff check
- name: Formatting check
run: uv run ruff format --check
- name: Type checking
run: uv run pyright
- name: Unit tests
run: uv run pytest