-
Notifications
You must be signed in to change notification settings - Fork 1
50 lines (41 loc) · 1.03 KB
/
Copy pathci.yml
File metadata and controls
50 lines (41 loc) · 1.03 KB
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
43
44
45
46
47
48
49
50
name: ci
on:
push:
branches: [main]
pull_request:
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
name: ${{ matrix.package }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- package: daemon
python-version: "3.10"
- package: tools/search
python-version: "3.10"
- package: src
python-version: "3.12"
defaults:
run:
working-directory: ${{ matrix.package }}
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v6
with:
enable-cache: true
cache-dependency-glob: ${{ matrix.package }}/uv.lock
- name: Install dependencies
run: uv sync --locked
- name: Lint (ruff)
run: uv run ruff check .
- name: Format check (ruff)
run: uv run ruff format --check .
- name: Type check (pyright)
run: uv run pyright
- name: Tests (pytest)
run: uv run pytest