diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7dfc077..1356c0f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -86,7 +86,7 @@ jobs: run: | # Run only unit tests (fragmentation and prioritization) python -m pytest tests/test_fragmentation.py tests/test_prioritization.py -v \ - --cov=src/ble_reticulum/BLEFragmentation.py \ + --cov=src/ble_reticulum \ --cov-report=term-missing \ --cov-report=xml:coverage-unit.xml continue-on-error: false @@ -95,6 +95,7 @@ jobs: if: matrix.python-version == '3.11' uses: codecov/codecov-action@v4 with: + token: ${{ secrets.CODECOV_TOKEN }} file: ./coverage-unit.xml flags: unit fail_ci_if_error: false @@ -151,6 +152,7 @@ jobs: if: matrix.python-version == '3.11' uses: codecov/codecov-action@v4 with: + token: ${{ secrets.CODECOV_TOKEN }} file: ./coverage-integration.xml flags: integration fail_ci_if_error: false diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 0000000..5048949 --- /dev/null +++ b/codecov.yml @@ -0,0 +1,33 @@ +coverage: + precision: 2 + round: down + range: "60...100" + status: + project: + default: + target: auto + threshold: 5% + patch: + default: + target: 80% + threshold: 5% + +comment: + layout: "reach,diff,flags,files" + behavior: default + require_changes: true + +flags: + unit: + paths: + - src/ble_reticulum/ + carryforward: true + integration: + paths: + - src/ble_reticulum/ + carryforward: true + +ignore: + - "tests/**/*" + - "**/__pycache__/**" + - "**/conftest.py"