Enable codecov upload.

This commit is contained in:
Dave Shawley 2021-03-30 08:24:25 -04:00
parent 5a52437857
commit 0d911fc3e2
No known key found for this signature in database
GPG key ID: F41A8A99298F8EED

View file

@ -33,16 +33,15 @@ jobs:
run: | run: |
coverage run -m unittest coverage run -m unittest
coverage report coverage report
coverage xml coverage xml -o ./coverage.xml
- name: Generate documentation - name: Generate documentation
run: | run: |
sphinx-build -b html -W --no-color docs build/sphinx/html sphinx-build -b html -W --no-color docs build/sphinx/html
# TODO - name: Upload coverage
# - name: Upload coverage uses: codecov/codecov-action@v1.0.2
# uses: codecov/codecov-action@v1.0.2 with:
# if: github.event_name == 'push' && github.repository == 'sprockets/sprockets-statsd' && github.branch == 'main' token: ${{ secrets.CODECOV_TOKEN }}
# with: file: ./coverage.xml
# token: ${{ secrets.CODECOV_TOKEN }} flags: unittests
# file: build/coverage.xml env_vars: OS,PYTHON
# flags: unittests fail_ci_if_error: true
# fail_ci_if_error: true