From 8ff8743a476fb5b492decfc8c65ec79ed3e21622 Mon Sep 17 00:00:00 2001 From: Nathan Hui Date: Wed, 22 Feb 2023 16:43:20 -0800 Subject: [PATCH] Added coverage --- .github/workflows/pytest.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index b7b8f35..ada2b5c 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -17,8 +17,17 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install pytest + pip install pytest coverage pip install . - name: Test run: | - python -m pytest tests/ \ No newline at end of file + coverage run -m pytest tests/ + - name: Generate Report + run: | + coverage html + - name: Upload report + uses: actions/upload-artifact@v3 + with: + name: coverage-report + path: | + htmlcov/* \ No newline at end of file