From 5f52c61a92194f0c3f50d97487a12b1cd67fa7f0 Mon Sep 17 00:00:00 2001 From: Zevaryx Date: Wed, 5 May 2021 18:27:22 -0600 Subject: [PATCH] Add codecoverage --- .github/workflows/python-package.yml | 5 +++++ README.md | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index c1fbd52..afa3be2 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -36,3 +36,8 @@ jobs: - name: Test with pytest run: | 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 diff --git a/README.md b/README.md index e08f83a..8d8355c 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,9 @@ # 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)