-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (55 loc) · 1.66 KB
/
main.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
name: Compléments Alimentaires CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.11]
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.11
uses: actions/setup-python@v1
with:
python-version: 3.11
- name: Setup PostgreSQL
uses: Harmon758/[email protected]
with:
postgresql db: postgres
postgresql user: postgres
postgresql password: postgres
- name: Setup Redis
uses: zhulik/[email protected]
with:
redis version: "5"
number of databases: 1
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: 20.x
- name: Install Python dependencies
run: |
python3 -m pip install --upgrade pip
pip install -r requirements.txt
- name: Test Django
env:
DEBUG: True
SECRET: test
FORCE_HTTPS: False
SECURE: False
ALLOWED_HOSTS: localhost
ENVIRONMENT: ci
DB_USER: postgres
DB_PASSWORD: postgres
DB_HOST: localhost
DB_PORT: 5432
DB_NAME: postgres
HOSTNAME: localhost
STATICFILES_STORAGE: django.contrib.staticfiles.storage.StaticFilesStorage
DEFAULT_FILE_STORAGE: django.core.files.storage.FileSystemStorage
DEFAULT_FROM_EMAIL: [email protected]
CONTACT_EMAIL: [email protected]
EMAIL_BACKEND: django.core.mail.backends.dummy.EmailBackend
REDIS_URL: redis://localhost:6379/0
run: |
python3 manage.py test