diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a246b56..feecbdb 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: @@ -45,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 @@ -54,6 +56,14 @@ jobs: files: ./coverage.xml fail_ci_if_error: false verbose: true + token: ${{ secrets.CODECOV_TOKEN }} + + - name: Upload test results to Codecov + uses: codecov/codecov-action@v5 + if: ${{ !cancelled() }} + with: + report_type: test_results + token: ${{ secrets.CODECOV_TOKEN }} build: name: Build Package diff --git a/README.md b/README.md index 5bd1e4f..2821e63 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.