From fa0c33642155103c9955795053ec479bc8da380e Mon Sep 17 00:00:00 2001 From: lmoretti96 <51789626+lmoretti96@users.noreply.github.com> Date: Sun, 28 Mar 2021 18:07:42 +0200 Subject: [PATCH] Update python-PyCTBN-package.yml --- .github/workflows/python-PyCTBN-package.yml | 23 +++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/.github/workflows/python-PyCTBN-package.yml b/.github/workflows/python-PyCTBN-package.yml index 08fb056..857ddea 100644 --- a/.github/workflows/python-PyCTBN-package.yml +++ b/.github/workflows/python-PyCTBN-package.yml @@ -41,3 +41,26 @@ jobs: - name: Test with pytest run: | pytest PyCTBN/tests/ + - name: Generate coverage report + run: | + pip install pytest + pip install pytest-cov + pytest --cov=./PyCTBN/tests/ --cov-report=xml + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }} + files: ./coverage1.xml,./coverage2.xml + directory: ./coverage/reports/ + flags: unittests + env_vars: OS,PYTHON + name: codecov-umbrella + fail_ci_if_error: true + path_to_write_report: ./coverage/codecov_report.txt + verbose: true + + + + + +