Skip to content

Commit 7057b79

Browse files
committed
Attempt to run tests under compose
1 parent 218d6a1 commit 7057b79

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ jobs:
4242
uses: actions/checkout@v4
4343
- name: "Run unit test suite"
4444
run: |
45+
cp .env.example .env
4546
make test-unit
4647
- name: "Save the result of fast test suite"
4748
run: |

makefiles/dev.mk

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ dev-shell:
1919
docker-compose run web sh
2020

2121
dev-migrate:
22-
docker-compose run web python manage.py migrate
22+
docker-compose run --rm web python manage.py migrate
2323

2424
dev-makemigrations:
25-
docker-compose run web python manage.py makemigrations
25+
docker-compose run --rm web python manage.py makemigrations
2626

2727
dev-clean:
2828
docker-compose down -v --remove-orphans
2929
docker system prune -f
3030

3131
dev-test:
32-
docker-compose run web python manage.py test
32+
docker-compose run --rm web python manage.py test

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)