-
Notifications
You must be signed in to change notification settings - Fork 1
81 lines (80 loc) · 2.22 KB
/
ci.yml
File metadata and controls
81 lines (80 loc) · 2.22 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
name: ci
on:
pull_request:
push:
branches:
- master
permissions:
contents: read
jobs:
lint-client:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Install npm
uses: actions/setup-node@v6
with:
node-version: 24.14.0
- run: |
npm ci
working-directory: web
- run: |
npm run test
working-directory: web
test-server:
runs-on: ubuntu-latest
services:
postgres:
image: postgis/postgis:18-3.6
env:
POSTGRES_DB: django
POSTGRES_PASSWORD: postgres
options: >-
--health-cmd "pg_isready --username postgres"
--health-start-period 30s
--health-start-interval 2s
ports:
- 5432:5432
rabbitmq:
image: rabbitmq:management-alpine
options: >-
--health-cmd "rabbitmq-diagnostics ping"
--health-start-period 30s
--health-start-interval 2s
ports:
- 5672:5672
minio:
# This image does not require any command arguments (which GitHub Actions don't support)
image: bitnamilegacy/minio:latest
env:
MINIO_ROOT_USER: minioAccessKey
MINIO_ROOT_PASSWORD: minioSecretKey
options: >-
--health-cmd "mc ready local"
--health-timeout 1s
--health-start-period 30s
--health-start-interval 2s
ports:
- 9000:9000
redis:
image: redis:alpine
options: >-
--health-cmd "redis-cli ping"
--health-start-period 30s
--health-start-interval 2s
ports:
- 6379:6379
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Install uv
uses: astral-sh/setup-uv@v7
- name: Run tests
run: |
uv run tox
env:
DJANGO_DATABASE_URL: postgres://postgres:postgres@localhost:5432/django
DJANGO_CELERY_BROKER_URL: amqp://localhost:5672/
DJANGO_MINIO_STORAGE_URL: http://minioAccessKey:minioSecretKey@localhost:9000/django-storage
DJANGO_REDIS_URL: redis://localhost:6379
DJANGO_UVDAT_WEB_URL: http://localhost:8080/