From ceec9f2a4d8c5c5ad537ad3b09be09b0a9761a3d Mon Sep 17 00:00:00 2001 From: Roman Babenko Date: Mon, 25 Sep 2023 13:41:12 +0300 Subject: [PATCH 1/5] codecov --- .github/workflows/main.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d2c234a..3fb67c3 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -54,7 +54,12 @@ jobs: run: python -m pip install --upgrade pip - name: Python Unit Tests - run: pytest --count=10 --random-order-bucket=global + run: pytest --random-order-bucket=global --cov=src --cov-report xml:xmlcov/coverage.xml + + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v3 + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} - name: Python Performance Test run: python -m perf From fc6dcd90470a5c832e043af9002a1a4d3e3d7e09 Mon Sep 17 00:00:00 2001 From: Roman Babenko Date: Mon, 25 Sep 2023 13:42:02 +0300 Subject: [PATCH 2/5] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 60f63c2..04d2714 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,7 @@ https://pypi.org/project/base91x/ [![Test](https://github.com/babenek/base91x/actions/workflows/main.yml/badge.svg)](https://github.com/babenek/base91x/actions/workflows/main.yml) +[![codecov](https://codecov.io/gh/babenek/base91x/branch/master/graph/badge.svg)](https://codecov.io/gh/babenek/base91x) [![GitHub release (latestSemVer)](https://img.shields.io/github/v/release/babenek/base91x)](https://github.com/babenek/base91x/releases) [![PyPI](https://img.shields.io/pypi/v/base91x)](https://pypi.org/project/base91x/) [![License](https://img.shields.io/badge/licence-MIT-green.svg?style=flat)](LICENSE) From 26cf852b1a9659e8ef181a8b8e4c411abbf063e3 Mon Sep 17 00:00:00 2001 From: Roman Babenko Date: Mon, 25 Sep 2023 13:43:31 +0300 Subject: [PATCH 3/5] Update main.yml --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3fb67c3..715db03 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -54,7 +54,7 @@ jobs: run: python -m pip install --upgrade pip - name: Python Unit Tests - run: pytest --random-order-bucket=global --cov=src --cov-report xml:xmlcov/coverage.xml + run: pytest --random-order-bucket=global --cov=src --cov-report xml:coverage.xml - name: Upload coverage reports to Codecov uses: codecov/codecov-action@v3 From 1d13e42dee0aa321a7d49b539bdf923d7fbbd255 Mon Sep 17 00:00:00 2001 From: Roman Babenko Date: Mon, 25 Sep 2023 13:45:07 +0300 Subject: [PATCH 4/5] Update main.yml --- .github/workflows/main.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 715db03..bfd64b8 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -50,9 +50,6 @@ jobs: - name: Install requirements run: pip install --requirement requirements.txt - - name: Update PIP - run: python -m pip install --upgrade pip - - name: Python Unit Tests run: pytest --random-order-bucket=global --cov=src --cov-report xml:coverage.xml From 46535bf63ec8239b6067700aef3387e9ce304014 Mon Sep 17 00:00:00 2001 From: Roman Babenko Date: Mon, 25 Sep 2023 13:45:50 +0300 Subject: [PATCH 5/5] Update requirements.txt --- requirements.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/requirements.txt b/requirements.txt index 03b957f..7419e62 100644 --- a/requirements.txt +++ b/requirements.txt @@ -6,3 +6,4 @@ setuptools pytest pytest-random-order pytest-repeat +pytest-cov