From 7dc9fa66c015ebc56f9d78df9c85322f1432822a Mon Sep 17 00:00:00 2001 From: Svein Seldal Date: Sun, 7 Apr 2024 17:50:21 +0200 Subject: [PATCH] Add support for Codecov --- .github/workflows/python-package.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 29d4f5f..b11f724 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -28,4 +28,9 @@ jobs: python -m pip install .[dev] - name: Test with pytest run: | - python -m pytest + python -m pytest --cov=objdictgen --cov-report=xml + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v4.0.1 + with: + token: ${{ secrets.CODECOV_TOKEN }} + slug: Laerdal/python-objdictgen \ No newline at end of file