Update ci.yml

This commit is contained in:
shamoon 2025-03-05 13:24:59 -08:00
parent ef3b32ba39
commit 30c3c7ff3a

View File

@ -162,7 +162,7 @@ jobs:
--frozen \
pytest
-
name: Upload coverage
name: Upload coverage artifact
if: ${{ matrix.python-version == env.DEFAULT_PYTHON_VERSION }}
uses: actions/upload-artifact@v4
with:
@ -280,10 +280,40 @@ jobs:
path: src-ui/junit-report-${{ matrix.shard-index }}.xml
retention-days: 7
tests-coverage-upload:
name: "Upload to Codecov"
tests-upload:
name: "Upload test results to Codecov"
runs-on: ubuntu-24.04
if: ${{ !cancelled() }}
needs:
- tests-backend
- tests-frontend
steps:
-
name: Download frontend test results
uses: actions/download-artifact@v4
with:
path: src-ui/junit/
pattern: junit-report-*
merge-multiple: true
-
name: Upload frontend test results to Codecov
if: ${{ !cancelled() }}
uses: codecov/test-results-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: frontend
directory: src-ui/junit/
-
name: Upload backend test results to Codecov
uses: codecov/test-results-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: backend
directory: src/
tests-coverage-upload:
name: "Upload coverage to Codecov"
runs-on: ubuntu-24.04
needs:
- tests-backend
- tests-frontend
@ -303,13 +333,6 @@ jobs:
path: src-ui/coverage/
pattern: playwright-report-*
merge-multiple: true
-
name: Download frontend test results
uses: actions/download-artifact@v4
with:
path: src-ui/junit/
pattern: junit-report-*
merge-multiple: true
-
name: Upload frontend coverage to Codecov
uses: codecov/codecov-action@v5
@ -320,14 +343,6 @@ jobs:
directory: src-ui/coverage/
# dont include backend coverage files here
files: '!coverage.xml'
-
name: Upload frontend test results to Codecov
if: ${{ !cancelled() }}
uses: codecov/test-results-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: frontend
directory: src-ui/junit/
-
name: Download backend coverage
uses: actions/download-artifact@v4
@ -343,13 +358,6 @@ jobs:
# future expansion
flags: backend
directory: src/
-
name: Upload backend test results to Codecov
uses: codecov/test-results-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: backend
directory: src/
-
name: Use Node.js 20
uses: actions/setup-node@v4