From da2d206fe5103946ce06bba19185546b239947ea Mon Sep 17 00:00:00 2001 From: Ephraim Rusu Date: Mon, 9 Sep 2024 11:50:03 -0700 Subject: [PATCH] Run and upload coverage tests --- .github/workflows/ci.yml | 4 ++++ requirements.txt | 1 + 2 files changed, 5 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d8bdefd..06abc9c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -63,6 +63,10 @@ jobs: # python setup.py build # python setup.py install # python -m pip list + - name: Run tests + if: matrix.os == 'ubuntu-latest' && matrix.python-version == 3.12 + run: | + coverage run -m pytest ./tests/ - name: Upload coverage reports to Codecov if: matrix.os == 'ubuntu-latest' && matrix.python-version == 3.12 uses: codecov/codecov-action@v4 diff --git a/requirements.txt b/requirements.txt index ce09fa3..7798d54 100644 --- a/requirements.txt +++ b/requirements.txt @@ -21,3 +21,4 @@ matplotlib pypdf2 ipyvolume ipython_genutils +pytest-cov