-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (44 loc) · 1.15 KB
/
tests.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
name: Backend tests
env:
DOCKER_BUILDKIT: 1
COMPOSE_DOCKER_CLI_BUILD: 1
on:
pull_request:
branches:
- dev
- main
- master
push:
paths:
- '.github/**'
- 'backend/**'
jobs:
pytest:
runs-on: ubuntu-latest
env:
CPLUS_INCLUDE_PATH: /usr/include/gdal
C_INCLUDE_PATH: /usr/include/gdal
DJANGO_SETTINGS_MODULE: core.settings.development
ENVIRONMENT: development
SECRET_KEY: app_secret_key
DEBUG: 1
ALLOWED_HOSTS: "localhost,127.0.0.1"
POSTGRES_HOST: localhost
POSTGRES_USER: postgres
POSTGRES_PASSWORD: triplane
POSTGRES_DB: postgres-triplane
POSTGRES_PORT: 5432
STORAGE_ENDPOINT_URL: http://localhost:9000
STORAGE_ACCESS_KEY: superuser
STORAGE_SECRET_KEY: superuser
STORAGE_SECURE: "False"
STORAGE_BUCKET_NAME: files
steps:
- name: Checkout Code Repository
uses: actions/checkout@v4
- name: Build Tests
run: docker compose --profile test build
- name: Run Tests
run: docker compose --profile test run --rm
- name: Stop Docker containers
run: docker compose down