From e874cf8582099c442e002c38309fdd5de30eb702 Mon Sep 17 00:00:00 2001 From: Dalitso Banda Date: Fri, 22 Sep 2023 10:21:42 -0700 Subject: [PATCH 1/2] Add coverage to CI --- .github/workflows/ci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8c0eab6a..f3921928 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -80,3 +80,7 @@ jobs: make install - name: Run tests run: pytest -vv + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v3 + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} From 96cbbfb6fe023450d49d8b5e981352249647cd69 Mon Sep 17 00:00:00 2001 From: Dalitso Banda Date: Fri, 22 Sep 2023 10:40:56 -0700 Subject: [PATCH 2/2] generate cov reports in pytest --- .github/workflows/ci.yml | 2 +- requirements-test.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f3921928..764be73c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -79,7 +79,7 @@ jobs: python -m pip install --upgrade pip make install - name: Run tests - run: pytest -vv + run: pytest -vv --cov - name: Upload coverage reports to Codecov uses: codecov/codecov-action@v3 env: diff --git a/requirements-test.txt b/requirements-test.txt index d10fccab..ed0d0178 100644 --- a/requirements-test.txt +++ b/requirements-test.txt @@ -1,3 +1,4 @@ pytest==7.1.2 pytest-benchmark==4.0.0 +pytest-cov==4.1.0 mypy==0.961