-
Notifications
You must be signed in to change notification settings - Fork 2
56 lines (54 loc) · 1.38 KB
/
code-check.yml
File metadata and controls
56 lines (54 loc) · 1.38 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
name: Tests
on:
push:
branches: [ main ]
paths-ignore:
- '*.md'
- 'docs/**'
pull_request:
branches: [ main ]
paths-ignore:
- '*.md'
- 'docs/**'
permissions:
actions: read
contents: read
pull-requests: read
jobs:
test:
name: Tests
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ "3.10", "3.11", "3.12", "3.13", "3.14" ]
postgres-version: [ "16", "17", "18" ]
fail-fast: true
services:
postgres:
image: postgres:${{ matrix.postgres-version }}
env:
POSTGRES_USER: taskiq_postgres
POSTGRES_PASSWORD: look_in_vault
POSTGRES_DB: taskiq_postgres
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- id: setup-uv
uses: astral-sh/setup-uv@3259c6206f993105e3a61b142c2d97bf4b9ef83d # v7.1.0
with:
enable-cache: true
cache-suffix: ${{ matrix.python-version }}
version: "latest"
python-version: ${{ matrix.python-version }}
- name: Install Dependencies
run: uv sync --all-extras
- name: Run tests
run: uv run pytest