Switch coverage reporting from Codecov to Coveralls

This commit is contained in:
shamoon
2025-09-24 22:20:29 -07:00
parent 764ad059d1
commit 398006b098

View File

@@ -179,19 +179,15 @@ jobs:
--dev \ --dev \
--frozen \ --frozen \
pytest pytest
- name: Upload backend test results to Codecov - name: Upload backend coverage to Coveralls
if: always() if: always()
uses: codecov/test-results-action@v1 uses: coverallsapp/github-action@v2
with: with:
token: ${{ secrets.CODECOV_TOKEN }} github-token: ${{ secrets.GITHUB_TOKEN }}
flags: backend-python-${{ matrix.python-version }} file: coverage.xml
files: junit.xml format: cobertura
- name: Upload backend coverage to Codecov flag-name: backend-python-${{ matrix.python-version }}
uses: codecov/codecov-action@v5 parallel: true
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: backend-python-${{ matrix.python-version }}
files: coverage.xml
- name: Stop containers - name: Stop containers
if: always() if: always()
run: | run: |
@@ -261,19 +257,28 @@ jobs:
run: cd src-ui && pnpm run lint run: cd src-ui && pnpm run lint
- name: Run Jest unit tests - name: Run Jest unit tests
run: cd src-ui && pnpm run test --max-workers=2 --shard=${{ matrix.shard-index }}/${{ matrix.shard-count }} run: cd src-ui && pnpm run test --max-workers=2 --shard=${{ matrix.shard-index }}/${{ matrix.shard-count }}
- name: Upload frontend test results to Codecov - name: Upload frontend coverage to Coveralls
uses: codecov/test-results-action@v1
if: always() if: always()
uses: coverallsapp/github-action@v2
with: with:
token: ${{ secrets.CODECOV_TOKEN }} github-token: ${{ secrets.GITHUB_TOKEN }}
flags: frontend-node-${{ matrix.node-version }} file: src-ui/coverage/lcov.info
directory: src-ui/ format: lcov
- name: Upload frontend coverage to Codecov flag-name: frontend-node-${{ matrix.node-version }}-shard-${{ matrix.shard-index }}
uses: codecov/codecov-action@v5 parallel: true
coveralls-finish:
name: Finalize Coveralls
runs-on: ubuntu-24.04
needs:
- tests-backend
- tests-frontend
if: ${{ always() }}
steps:
- name: Mark Coveralls jobs complete
uses: coverallsapp/github-action@v2
with: with:
token: ${{ secrets.CODECOV_TOKEN }} github-token: ${{ secrets.GITHUB_TOKEN }}
flags: frontend-node-${{ matrix.node-version }} parallel-finished: true
directory: src-ui/coverage/
tests-frontend-e2e: tests-frontend-e2e:
name: "Frontend E2E Tests (Node ${{ matrix.node-version }} - ${{ matrix.shard-index }}/${{ matrix.shard-count }})" name: "Frontend E2E Tests (Node ${{ matrix.node-version }} - ${{ matrix.shard-index }}/${{ matrix.shard-count }})"
runs-on: ubuntu-24.04 runs-on: ubuntu-24.04
@@ -351,8 +356,6 @@ jobs:
- name: Re-link Angular cli - name: Re-link Angular cli
run: cd src-ui && pnpm link @angular/cli run: cd src-ui && pnpm link @angular/cli
- name: Build frontend and upload analysis - name: Build frontend and upload analysis
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
run: cd src-ui && pnpm run build --configuration=production run: cd src-ui && pnpm run build --configuration=production
build-docker-image: build-docker-image:
name: Build Docker image for ${{ github.ref_name }} name: Build Docker image for ${{ github.ref_name }}