Skip to content

Commit 552e021

Browse files
committed
Attempt to run tests under compose
1 parent 218d6a1 commit 552e021

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

.github/workflows/stage-2-test.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ jobs:
3737
name: "Unit tests"
3838
runs-on: ubuntu-latest
3939
timeout-minutes: 5
40+
env:
41+
ENV_FILE: .env.example
4042
steps:
4143
- name: "Checkout code"
4244
uses: actions/checkout@v4

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ services:
77
ports:
88
- "8000:8000"
99
env_file:
10-
- .env
10+
- ${ENV_FILE:-.env}
1111
depends_on:
1212
- db
1313
volumes:

scripts/tests/unit.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ cd "$(git rev-parse --show-toplevel)"
1717
# tests from here. If you want to run other test suites, see the predefined
1818
# tasks in scripts/test.mk.
1919

20-
echo "Unit tests are not yet implemented. See scripts/tests/unit.sh for more."
20+
docker compose run web python manage.py test

0 commit comments

Comments
 (0)