-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (42 loc) · 1.1 KB
/
tests.yml
File metadata and controls
51 lines (42 loc) · 1.1 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: Tests
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
permissions:
contents: read
jobs:
test:
name: Run tests and collect coverage
runs-on: ubuntu-latest
services:
redis:
image: redis:7-alpine
ports:
- 6379:6379
options: >-
--health-cmd "redis-cli ping"
--health-interval 5s
--health-timeout 5s
--health-retries 5
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install uv (with Python 3.12)
uses: astral-sh/setup-uv@v4
with:
python-version: "3.12"
- name: Install dependencies via uv
run: |
# installs main deps from [project.dependencies]
# plus dev group from [dependency-groups]
uv sync --group dev
- name: Run tests
run: |
uv run pytest --cov=src --cov-branch --cov-report=xml
- name: Upload results to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: flowdacity/flowdacity-queue