From b1cc0b5e6f8f761b806885f646602ac24d74243e Mon Sep 17 00:00:00 2001 From: Cody Logan Date: Mon, 9 Oct 2023 10:08:40 -0700 Subject: Add Codecov report to actions file --- .github/workflows/python.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index 321ed44..d02c1b5 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -27,7 +27,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip setuptools wheel - python -m pip install flake8 pytest + python -m pip install flake8 pytest "coverage[toml]" python -m pip install . - name: Lint with flake8 run: | @@ -35,4 +35,8 @@ jobs: flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics - name: Test with pytest run: | - pytest + coverage run -m pytest + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v3 + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} -- cgit v1.2.3