Skip to content
This repository was archived by the owner on Oct 2, 2025. It is now read-only.

Commit 216efc8

Browse files
committed
Add .env.testing
1 parent ebc1fe7 commit 216efc8

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

.env.testing

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
SECRET_KEY=django-insecure-sm^36&t1s@ox08&3--loi_qa=u)wrsl!+eq5y^kw0h9b1r#+uw
2+
DEBUG=True
3+
ALLOWED_HOSTS='localhost 127.0.0.1 [::1]'
4+
CORS_ALLOWED_ORIGINS='http://localhost'
5+
TIME_ZONE='Europe/London'
6+
APP_ENV=development
7+
SIGNING_KEY=2de5c7b55db0e2bcbaac7a135e7b0cf340da8dba93f8c6d4f5ef0934887c834b
8+
MARIADB_DATABASE=boilerplate
9+
MARIADB_USER=root
10+
MARIADB_PASSWORD=
11+
MARIADB_HOST=localhost
12+
MARIADB_PORT=3306
13+
EMAIL_HOST=mailhog
14+
EMAIL_HOST_USER=
15+
EMAIL_HOST_PASSWORD=
16+
EMAIL_PORT=1025
17+
EMAIL_USE_TLS=False
18+
DOMAIN=localhost

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
mysql:
2121
image: mysql:5.7
2222
env:
23-
MYSQL_ROOT_PASSWORD: ''
23+
MYSQL_ROOT_PASSWORD: 'secret'
2424
MYSQL_DATABASE: 'boilerplate'
2525
MYSQL_USER: 'user'
2626
MYSQL_PASSWORD: 'secret'
@@ -49,7 +49,7 @@ jobs:
4949
python -m pip install --upgrade pip
5050
pip install -r requirements.txt
5151
- name: Create environment file
52-
run: cp .env.example .env
52+
run: cp .env.testing .env
5353
- name: Run Tests
5454
run: |
5555
python manage.py test

0 commit comments

Comments
 (0)