From f9b467bcb92d6617846423b812de45c65724af30 Mon Sep 17 00:00:00 2001 From: Marcelo Trevisani Date: Tue, 11 Jul 2023 06:51:32 +0100 Subject: [PATCH] Add coveragerc file --- .coveragerc | 14 ++++++++++++++ .github/workflows/tests.yaml | 6 +++--- 2 files changed, 17 insertions(+), 3 deletions(-) create mode 100644 .coveragerc diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 0000000..9adde77 --- /dev/null +++ b/.coveragerc @@ -0,0 +1,14 @@ +[run] +source=src/orko +omit = + .cache/* + */tests/* + docs/* + .pytest_cache/* + setup.py + _version.py + orko.egg-info/* + .github/* + +[paths] +source = src/orko diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 692dd67..b397b43 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -38,8 +38,8 @@ jobs: --color=yes \ --cov=src \ --cov-append \ - --cov-report html:coverage-serial-html \ - --cov-report xml:coverage-serial.xml \ + --cov-report html:coverage-${{ matrix.os }}-py${{ matrix.py_ver }}.html \ + --cov-report xml:coverage-${{ matrix.os }}-py${{ matrix.py_ver }}.xml \ --cov-config=.coveragerc \ --junit-xml=${{ matrix.os }}-py${{ matrix.py_ver }}.xml \ --junit-prefix=${{ matrix.os }}-py${{ matrix.py_ver }} @@ -47,7 +47,7 @@ jobs: - name: Upload coverage to Codecov uses: codecov/codecov-action@v3 with: - files: ./coverage-serial.xml,./coverage-parallel.xml + files: ./coverage-${{ matrix.os }}-py${{ matrix.py_ver }}.xml directory: . flags: unittests name: orko-tests