From fdf3a1d0b06116a60d42c2e073733c940e576c38 Mon Sep 17 00:00:00 2001 From: zakarm Date: Thu, 25 Apr 2024 17:31:02 +0100 Subject: [PATCH] [Chore] Add unit test for django rest framwork api --- .github/workflows/django-tests.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/django-tests.yml b/.github/workflows/django-tests.yml index dfc6da8f..734e4671 100644 --- a/.github/workflows/django-tests.yml +++ b/.github/workflows/django-tests.yml @@ -38,14 +38,14 @@ jobs: - name: Install dependencies run: | - cp app/back-end/requirements.txt . + cd app/back-end python -m pip install --upgrade pip pip install -r requirements.txt - name: Run migrations run: | cd app/back-end - python makemigrations + python manage.py makemigrations python manage.py migrate env: DATABASE_URL: "postgres://postgres:postgres@localhost:5432/db_member"