diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 0000000..4d6eb52 --- /dev/null +++ b/.coveragerc @@ -0,0 +1,11 @@ +[run] +omit = + # omit everything in /usr very important ! + /usr/* + */local-worker/* + +[html] +omit = + # omit everything in /usr very important ! + /usr/* + */local-worker/* \ No newline at end of file diff --git a/.github/workflows/pr_validation.yml b/.github/workflows/pr_validation.yml index 68dd3c5..3523186 100644 --- a/.github/workflows/pr_validation.yml +++ b/.github/workflows/pr_validation.yml @@ -60,9 +60,9 @@ jobs: coverage run -m pytest -v fedeca - name: Generate code coverage report run: | - coverage html --omit="*/local-worker/*" + coverage html - name: Upload coverage artifacts - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: test-coverage-report path: htmlcov/ diff --git a/badges/cov_badge.svg b/badges/cov_badge.svg index 704c1cc..1882ce8 100644 --- a/badges/cov_badge.svg +++ b/badges/cov_badge.svg @@ -1 +1 @@ -coverage: 44%coverage44% +coverage: 87%coverage87%