-
Notifications
You must be signed in to change notification settings - Fork 1
55 lines (45 loc) · 1.29 KB
/
tests.yml
File metadata and controls
55 lines (45 loc) · 1.29 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
name: Tests
on:
pull_request:
branches: [develop, main]
concurrency:
group: tests-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:15
env:
POSTGRES_DB: fiesta
POSTGRES_USER: fiesta
POSTGRES_PASSWORD: fiesta
ports:
- 5432:5432
options: >-
--health-cmd="pg_isready -U fiesta"
--health-interval=10s
--health-timeout=5s
--health-retries=5
env:
DATABASE_URL: postgres://fiesta:fiesta@localhost:5432/fiesta
DJANGO_SETTINGS_MODULE: fiesta.settings
DJANGO_CONFIGURATION: Development
DJANGO_SECRET_KEY: ci-test-secret-key-not-for-production
DJANGO_RECAPTCHA_SITE_KEY: dummy-recaptcha-site-key
DJANGO_RECAPTCHA_SECRET_KEY: dummy-recaptcha-secret-key
ROOT_DOMAIN: fiesta.test
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v5
with:
enable-cache: true
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install dependencies
run: uv sync
- name: Run tests
working-directory: fiesta
run: uv run python manage.py test --verbosity 1