From 47fc1341c7a1d61a53db064251569ee9f8cf7f32 Mon Sep 17 00:00:00 2001 From: Utsavkumar Lal <36764273+utsavll0@users.noreply.github.com> Date: Thu, 19 Oct 2023 17:49:45 -0400 Subject: [PATCH] Trying code coverage --- .github/workflows/code_cov.yml | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/.github/workflows/code_cov.yml b/.github/workflows/code_cov.yml index d64e78f9..e25081b1 100644 --- a/.github/workflows/code_cov.yml +++ b/.github/workflows/code_cov.yml @@ -13,22 +13,19 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v2 - - name: Install Python 3.9.8 + - name: Install Python 3.10.13 uses: actions/setup-python@v1 with: - python-version: 3.9.9 + python-version: 3.10.13 - name: Install dependencies run: | - pip install pytest-cov + pip install pytest-cov pytest pip install -r requirements.txt echo requirements installed - name: Run the tests run: | - python application.py & - sleep 5 - cd tests - coverage run test_module.py + pytest tests - name: Upload coverage to Codecov uses: codecov/codecov-action@v1 with: - token: ${{ secrets.CODECOV_TOKEN }} \ No newline at end of file + token: ${{ secrets.CODECOV_TOKEN }}