From 3f48e8c2d9a29f996dfcb1081d00a3a150b806ea Mon Sep 17 00:00:00 2001 From: kshitijrajsharma Date: Tue, 26 Nov 2024 09:30:07 +0100 Subject: [PATCH] fix(workflow): update test step to enable coverage report --- .github/workflows/backend_build.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/backend_build.yml b/.github/workflows/backend_build.yml index 36a51d68..66105ae2 100644 --- a/.github/workflows/backend_build.yml +++ b/.github/workflows/backend_build.yml @@ -124,14 +124,15 @@ jobs: python manage.py migrate login python manage.py migrate core - - name : Run tests - env : + - name: Run tests + env: TESTING_TOKEN: ${{ secrets.TESTING_TOKEN }} OSM_CLIENT_ID: ${{ secrets.OSM_CLIENT_ID }} OSM_CLIENT_SECRET: ${{ secrets.OSM_CLIENT_SECRET }} OSM_SECRET_KEY: ${{ secrets.OSM_SECRET_KEY }} - run : | + run: | cd backend/ coverage run manage.py test tests - coverage report + +# enable coverage report with this : coverage report