Add codecoverage

This commit is contained in:
Zevaryx 2021-05-05 18:27:22 -06:00
parent 69764bf96f
commit 5f52c61a92
2 changed files with 9 additions and 1 deletions

View file

@ -36,3 +36,8 @@ jobs:
- name: Test with pytest - name: Test with pytest
run: | run: |
python3.10 -m pytest --cov=calculator tests/ python3.10 -m pytest --cov=calculator tests/
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
name: codecov-umbrella

View file

@ -1,6 +1,9 @@
# calculator # calculator
![GitHub Actions](https://github.com/zevaryx/calculator/actions/workflows/python-package.yml/badge.svg) ![GitLab CI/CD](https://git.zevaryx.com/zevaryx/calculator/badges/main/pipeline.svg) ![GitHub Actions](https://github.com/zevaryx/calculator/actions/workflows/python-package.yml/badge.svg)
[![pipeline status](https://git.zevaryx.com/zevaryx/calculator/badges/main/pipeline.svg)](https://git.zevaryx.com/zevaryx/calculator/-/commits/main)
[![coverage report](https://git.zevaryx.com/zevaryx/calculator/badges/main/coverage.svg)](https://git.zevaryx.com/zevaryx/calculator/-/commits/main)
A simple calculator based on [CodePulse's Math Interpreter series](https://www.youtube.com/playlist?list=PLZQftyCk7_Sdu5BFaXB_jLeJ9C78si5_3) A simple calculator based on [CodePulse's Math Interpreter series](https://www.youtube.com/playlist?list=PLZQftyCk7_Sdu5BFaXB_jLeJ9C78si5_3)