-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (52 loc) · 1.36 KB
/
Copy pathcode-check.yml
File metadata and controls
54 lines (52 loc) · 1.36 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
name: Tests
on:
push:
branches: [master]
paths-ignore:
- "*.md"
- "docs/**"
pull_request:
branches: [master]
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.11", "3.12", "3.13", "3.14" ]
fail-fast: true
services:
mongodb:
image: mongo:7
ports:
- 27017:27017
env:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: password # pragma: allowlist secret
MONGO_INITDB_DATABASE: taskiq
options: >-
--health-cmd="echo 'db.runCommand(\"ping\").ok' | mongosh localhost:27017/test --quiet"
--health-interval=5s
--health-timeout=5s
--health-retries=10
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- id: setup-uv
uses: astral-sh/setup-uv@bec219d24cd3e171d82865faccec33120bb574f4 # v10.1.0
with:
enable-cache: true
version: "latest"
python-version: ${{ matrix.python-version }}
- name: Install Dependencies
run: uv sync --all-extras
- name: Run tests
run: uv run pytest