-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (51 loc) · 1.42 KB
/
integration_tests.yml
File metadata and controls
52 lines (51 loc) · 1.42 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
name: Integration Tests
on:
push:
branches:
- main
jobs:
integration-tests:
runs-on: ubuntu-latest
services:
redis:
image: redis
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 6379:6379
postgres:
image: postgres:16
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: procrastinate
options: >-
--health-cmd "pg_isready -U postgres"
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
steps:
- uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.13"
- uses: astral-sh/setup-uv@v7
with:
enable-cache: true
- name: Install project
run: |
uv sync --frozen
uv pip install celery"${{ matrix.celery-version }}"
- name: Run tests
run: uv run --no-sync pytest integration_tests -vs
env:
TASKBADGER_ORG: ${{ vars.TASKBADGER_ORG }}
TASKBADGER_PROJECT: ${{ vars.TASKBADGER_PROJECT }}
TASKBADGER_API_KEY: ${{ secrets.TASKBADGER_API_KEY }}
PROCRASTINATE_DSN: postgresql://postgres:postgres@localhost:5432/procrastinate