From 2a97fe6aa6b8a7a50aa71681f12dd26357e7a6b9 Mon Sep 17 00:00:00 2001 From: Balakhonova Marina <90852680+margoloko@users.noreply.github.com> Date: Sat, 2 Mar 2024 12:07:16 +0300 Subject: [PATCH] Update workflow.yaml --- .github/workflows/workflow.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/workflow.yaml b/.github/workflows/workflow.yaml index 3f27ce9..1011da1 100644 --- a/.github/workflows/workflow.yaml +++ b/.github/workflows/workflow.yaml @@ -26,6 +26,14 @@ jobs: - name: Check with flake8 run: python -m flake8 crm_yandex/ + + - name: Run tests with coverage + run: | + pip install coverage + cd crm_yandex/ + python manage.py test + coverage run -m unittest discover + coverage report -m build_and_push_to_docker_hub: name: Push Docker image to DockerHub