-
Notifications
You must be signed in to change notification settings - Fork 0
68 lines (63 loc) · 1.67 KB
/
pull-request.yml
File metadata and controls
68 lines (63 loc) · 1.67 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: pull-request
on:
pull_request:
branches:
- master
jobs:
check-version-bumped:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
cache: pip
- run: curl -fsSL https://raw.githubusercontent.com/dycw/remote-scripts/refs/heads/master/scripts/check-version-bumped | sh -s
ruff:
name: ruff
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: astral-sh/ruff-action@v3
- run: ruff check --fix
- run: ruff format
pyright:
name: pyright
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: astral-sh/setup-uv@v7
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 }} / ${{ matrix.version }}
env:
CI: 1
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [macos-latest, ubuntu-latest]
version: ["3.12", "3.13", "3.14"]
services:
redis:
image: ${{ matrix.os == 'ubuntu-latest' && 'redis/redis-stack:latest' || '' }}
ports:
- 6379:6379
steps:
- uses: actions/checkout@v6
- uses: astral-sh/setup-uv@v7
with:
enable-cache: true
version: latest
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.version }}
- run: uv sync --locked
- run: uv run pytest --cov-report=term-missing:skip-covered -n=auto
timeout-minutes: 60