From 5ed12e64e1b8de5a7b23ebdd9c3d0c9156c5a92e Mon Sep 17 00:00:00 2001 From: Purv Patel Date: Wed, 27 Dec 2023 20:24:25 +0530 Subject: [PATCH] Trying to understand what went wrong before the change in the code-cov file --- .github/workflows/code_cov.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/code_cov.yml b/.github/workflows/code_cov.yml index 41dd1ed9..5f2d0a4e 100644 --- a/.github/workflows/code_cov.yml +++ b/.github/workflows/code_cov.yml @@ -16,7 +16,7 @@ jobs: image: mongo:latest ports: - 27017:27017 - + steps: - name: Checkout repository uses: actions/checkout@v3 @@ -40,7 +40,10 @@ jobs: echo SECRET_KEY=${{ secrets.SECRET_KEY }} >> .env cat .env - name: Run the tests - run: pytest --cov=./ + run: | + python -m src.application.py & + sleep 5 + pytest --cov=./ - name: Upload coverage to Codecov uses: codecov/codecov-action@v1 with: