From 3b1886973d522a61abd70fafd6660d6e2c2f0a00 Mon Sep 17 00:00:00 2001 From: kba Date: Tue, 8 Apr 2025 14:52:38 +0200 Subject: [PATCH] gha snippets from codecov sample page --- .github/workflows/test-eynollah.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test-eynollah.yml b/.github/workflows/test-eynollah.yml index b27586c..6baf058 100644 --- a/.github/workflows/test-eynollah.yml +++ b/.github/workflows/test-eynollah.yml @@ -54,6 +54,13 @@ jobs: coverage html coverage json coverage xml + - name: Run tests + run: pytest --cov --cov-branch --cov-report=xml + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v5 + with: + token: ${{ secrets.CODECOV_TOKEN }} + fail_ci_if_error: false - name: Store coverage results uses: actions/upload-artifact@v4 with: @@ -63,11 +70,6 @@ jobs: pytest.xml coverage.xml coverage.json - - name: Upload coverage results - uses: codecov/codecov-action@v4 - with: - files: coverage.xml - fail_ci_if_error: false - name: Test standalone CLI run: make smoke-test - name: Test OCR-D CLI