-
Notifications
You must be signed in to change notification settings - Fork 9
71 lines (68 loc) · 1.94 KB
/
ci.yml
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
name: ci
on:
pull_request:
push:
branches:
- master
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/tox
- uses: ./.github/actions/npm
- run: tox -e lint
- run: cd web_client && npm run lint -- --no-fix
pytests:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:latest
env:
POSTGRES_DB: django
POSTGRES_PASSWORD: postgres
ports:
- 5432:5432
rabbitmq:
image: rabbitmq:management
ports:
- 5672:5672
minio:
# TODO at the time this was pinned, latest bitnami/minio was broken
image: bitnami/minio:2022.2.18
env:
MINIO_ROOT_USER: minioAccessKey
MINIO_ROOT_PASSWORD: minioSecretKey
ports:
- 9000:9000
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/lfs
- uses: ./.github/actions/tox
- run: tox
env:
DJANGO_CONFIGURATION: DevelopmentConfiguration
DJANGO_DATABASE_URL: postgres://postgres:postgres@localhost:5432/django
DJANGO_MINIO_STORAGE_ENDPOINT: localhost:9000
DJANGO_MINIO_STORAGE_ACCESS_KEY: minioAccessKey
DJANGO_MINIO_STORAGE_SECRET_KEY: minioSecretKey
DJANGO_STORAGE_BUCKET_NAME: django-storage
# playwright:
# timeout-minutes: 60
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - uses: actions/setup-node@v3
# with:
# node-version: 16
# - name: Install dependencies
# run: cd web_client && npm ci
# - name: Install Playwright Browsers
# run: cd web_client && npx playwright install --with-deps
# - name: Run Playwright tests
# run: cd web_client && npx playwright test
# - uses: actions/upload-artifact@v3
# with:
# name: playwright-report
# path: playwright-report/
# retention-days: 30