From 675ee11f3fed0e56f84ef01ae2208e1d66e88b61 Mon Sep 17 00:00:00 2001 From: Marcel Rosier Date: Wed, 9 Oct 2024 11:46:34 +0200 Subject: [PATCH] Revert to action but generate xml before --- .github/workflows/tests.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 5e92219..1f7223d 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -42,9 +42,10 @@ jobs: - name: Test with pytest run: | python -m poetry run coverage run --source=panoptica -m pytest + python -m poetry run coverage xml - name: Upload results to Codecov # Only upload to Codecov after a merge to the main branch - # if: github.ref == 'refs/heads/main' && github.event_name == 'push' - run: | - pip install codecov-cli - codecovcli --verbose upload-process --disable-search -t ${{ secrets.CODECOV_TOKEN }} -n 'job-name'-${{ github.run_id }} -f .coverage + if: github.ref == 'refs/heads/main' && github.event_name == 'push' + uses: codecov/codecov-action@v4 + with: + token: ${{ secrets.CODECOV_TOKEN }}