From d4c3e127a217863c2b72c24b35bd5efe87282f1d Mon Sep 17 00:00:00 2001 From: JingleManSweep Date: Wed, 18 Mar 2026 11:23:32 +0000 Subject: [PATCH 1/5] Add CODECOV_TOKEN to CI workflow --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a246b56..6672c6a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -54,6 +54,7 @@ jobs: files: ./coverage.xml fail_ci_if_error: false verbose: true + token: ${{ secrets.CODECOV_TOKEN }} build: name: Build Package From f8219b46260c613b857ae5351f4d2baae56df371 Mon Sep 17 00:00:00 2001 From: JingleManSweep Date: Wed, 18 Mar 2026 11:39:42 +0000 Subject: [PATCH 2/5] Add push trigger for CI on main branch --- .github/workflows/ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6672c6a..b90dcad 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,6 +1,8 @@ name: CI on: + push: + branches: [main] pull_request: branches: [main] paths: From fa1a2ecc179c0e6a54b461650c442e4855294a88 Mon Sep 17 00:00:00 2001 From: JingleManSweep Date: Wed, 18 Mar 2026 11:55:06 +0000 Subject: [PATCH 3/5] Add Codecov badge to README Added Codecov badge to README for coverage tracking. --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 33dd167..bc4ef49 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,7 @@ [![CI](https://github.com/ipnet-mesh/meshcore-hub/actions/workflows/ci.yml/badge.svg)](https://github.com/ipnet-mesh/meshcore-hub/actions/workflows/ci.yml) [![Docker](https://github.com/ipnet-mesh/meshcore-hub/actions/workflows/docker.yml/badge.svg)](https://github.com/ipnet-mesh/meshcore-hub/actions/workflows/docker.yml) +[![codecov](https://codecov.io/github/ipnet-mesh/meshcore-hub/graph/badge.svg?token=DO4F82DLKS)](https://codecov.io/github/ipnet-mesh/meshcore-hub) [![BuyMeACoffee](https://raw.githubusercontent.com/pachadotdev/buymeacoffee-badges/main/bmc-donate-yellow.svg)](https://www.buymeacoffee.com/jinglemansweep) Python 3.13+ platform for managing and orchestrating MeshCore mesh networks. From ff36a991afc418f2c20f2b6ea81c2be294f63667 Mon Sep 17 00:00:00 2001 From: JingleManSweep Date: Wed, 18 Mar 2026 11:57:23 +0000 Subject: [PATCH 4/5] Update ci.yml --- .github/workflows/ci.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b90dcad..2ae0b23 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -47,7 +47,7 @@ jobs: - name: Run tests with pytest run: | - pytest --cov=meshcore_hub --cov-report=xml --cov-report=term-missing + pytest --cov=meshcore_hub --cov-report=xml --cov-report=term-missing --junitxml=junit.xml -o junit_family=legacy - name: Upload coverage to Codecov uses: codecov/codecov-action@v5 @@ -58,6 +58,12 @@ jobs: verbose: true token: ${{ secrets.CODECOV_TOKEN }} + - name: Upload test results to Codecov + uses: codecov/test-results-action@v1 + if: ${{ !cancelled() }} + with: + token: ${{ secrets.CODECOV_TOKEN }} + build: name: Build Package runs-on: ubuntu-latest From 0e2a24caa68945f8cec159bb0641423d17ba1f3a Mon Sep 17 00:00:00 2001 From: JingleManSweep Date: Wed, 18 Mar 2026 12:03:05 +0000 Subject: [PATCH 5/5] Upgrade Codecov action and specify report type Updated Codecov action to version 5 and added report type. --- .github/workflows/ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2ae0b23..feecbdb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -59,9 +59,10 @@ jobs: token: ${{ secrets.CODECOV_TOKEN }} - name: Upload test results to Codecov - uses: codecov/test-results-action@v1 + uses: codecov/codecov-action@v5 if: ${{ !cancelled() }} with: + report_type: test_results token: ${{ secrets.CODECOV_TOKEN }} build: