From 408c01a75a1e1715371b16e93867b227c3961b29 Mon Sep 17 00:00:00 2001 From: Mazen Ali Date: Sat, 20 Jul 2024 17:17:53 +0200 Subject: [PATCH] chore (test): add coverage report and badge --- .github/workflows/main.yml | 5 +++++ Makefile | 1 + README.md | 1 + 3 files changed, 7 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e416c4d..0c76fb0 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -52,3 +52,8 @@ jobs: - name: Run Makefile tasks run: | poetry run make all + + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v4.0.1 + with: + token: ${{ secrets.CODECOV_TOKEN }} \ No newline at end of file diff --git a/Makefile b/Makefile index 4597dc5..f7f218b 100644 --- a/Makefile +++ b/Makefile @@ -33,6 +33,7 @@ test: test_coverage: coverage run --source=qulearn --module pytest -v tests/ && coverage report -m + coverage xml secrets_check: @git secrets --scan -r diff --git a/README.md b/README.md index bc62263..64dd906 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ # QuLearn [![CI](https://github.com/MazenAli/QuLearn/actions/workflows/main.yml/badge.svg)](https://github.com/MazenAli/QuLearn/actions/workflows/main.yml) +[![codecov](https://codecov.io/github/MazenAli/QuLearn/graph/badge.svg?token=9HGKOOI6CU)](https://codecov.io/github/MazenAli/QuLearn) Welcome to QuLearn, a Python package designed to simplify the development and application of quantum and classical machine learning models. This project remained a hobby and is not actively developed anymore.