diff options
| author | Cody Logan <clpo13@gmail.com> | 2023-10-09 10:08:40 -0700 |
|---|---|---|
| committer | Cody Logan <clpo13@gmail.com> | 2023-10-09 10:08:40 -0700 |
| commit | b1cc0b5e6f8f761b806885f646602ac24d74243e (patch) | |
| tree | 331439fa02f1ec1e3376b5c4782e84a1356dc96c /.github | |
| parent | 1fb093e26709573e03fa0feb4afa53a22568d92e (diff) | |
| download | wikiget-b1cc0b5e6f8f761b806885f646602ac24d74243e.tar.gz wikiget-b1cc0b5e6f8f761b806885f646602ac24d74243e.zip | |
Add Codecov report to actions file
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/python.yml | 8 |
1 files 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 }} |
