-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (47 loc) · 1.14 KB
/
pull-request.yml
File metadata and controls
51 lines (47 loc) · 1.14 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
51
name: pull-request
on:
pull_request:
branches:
- master
jobs:
ruff:
name: ruff
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: astral-sh/ruff-action@v3
- run: ruff check --fix
- run: ruff format
pyright:
name: pyright
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v6
with:
enable-cache: true
version: latest
- uses: actions/setup-python@v5
with:
python-version-file: .python-version
- run: uv sync
- run: uv run pyright
test:
name: test / ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [windows-latest, macos-latest, ubuntu-latest]
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v6
with:
enable-cache: true
version: latest
- uses: actions/setup-python@v5
with:
python-version-file: .python-version
- run: uv sync
- run: uv run pytest --cov-report=term-missing:skip-covered -n=auto
timeout-minutes: 60