-
Notifications
You must be signed in to change notification settings - Fork 11
47 lines (42 loc) · 1.05 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: Run tests
on:
pull_request:
branches:
- main
- develop
push:
branches:
- main
- develop
jobs:
build:
env:
ENVIRONMENT: 'test'
DJANGO_SETTINGS_MODULE: 'indymeet.settings.test'
DATABASE_URL: "postgres://djangonaut:djangonaut@localhost:5432/djangonaut-space"
DEBUG: False
SECRET_KEY: "hunter2"
RECAPTCHA_PUBLIC_KEY: "dummy_value"
RECAPTCHA_PRIVATE_KEY: "dummy_value"
runs-on: ubuntu-latest
services:
pg:
image: postgres
ports:
- 5432:5432
env:
POSTGRES_USER: "djangonaut"
POSTGRES_PASSWORD: "djangonaut"
POSTGRES_DB: "djangonaut-space"
steps:
- uses: actions/checkout@v4
- name: Set up Python version
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements/requirements-test.txt
- name: Run tests
run: pytest