diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index c3e6ae9a..ad85d076 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -44,4 +44,15 @@ jobs: run: | cd ./backend pwd - pytest --cov-report xml:cov.xml --cov=./ ./ + pytest --doctest-modules --junitxml=junit/test-results.xml --cov=app --cov-report=xml --cov-report=html + + - name: Upload coverage to Codecov + if: always() + uses: codecov/codecov-action@v3 + with: + files: ./coverage.xml + flags: unittests + name: codecov-umbrella + fail_ci_if_error: false + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} diff --git a/readme.md b/readme.md index b9801354..de1a9753 100644 --- a/readme.md +++ b/readme.md @@ -6,6 +6,7 @@ ![GitHub top language](https://img.shields.io/github/languages/top/CSC-510-G55/project1-ats) [![Build](https://github.com/CSC-510-G55/project1-ats/actions/workflows/build.yml/badge.svg)](https://github.com/CSC-510-G55/project1-ats/actions/workflows/build.yml) [![Pytest](https://github.com/CSC-510-G55/project1-ats/actions/workflows/pytest.yml/badge.svg)](https://github.com/CSC-510-G55/project1-ats/actions/workflows/pytest.yml) +[![Codecov](https://codecov.io/gh/CSC-510-G55/project1-ats/graph/badge.svg)](https://codecov.io/gh/CSC-510-G55/project1-ats) [![Pylint](https://github.com/CSC-510-G55/project1-ats/actions/workflows/pylint.yml/badge.svg)](https://github.com/CSC-510-G55/project1-ats/actions/workflows/pylint.yml) [![Prettier](https://github.com/CSC-510-G55/project1-ats/actions/workflows/prettier.yml/badge.svg)](https://github.com/CSC-510-G55/project1-ats/actions/workflows/prettier.yml)