mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-15 10:13:15 -05:00
Update ci.yml
This commit is contained in:
parent
ef3b32ba39
commit
30c3c7ff3a
58
.github/workflows/ci.yml
vendored
58
.github/workflows/ci.yml
vendored
@ -162,7 +162,7 @@ jobs:
|
|||||||
--frozen \
|
--frozen \
|
||||||
pytest
|
pytest
|
||||||
-
|
-
|
||||||
name: Upload coverage
|
name: Upload coverage artifact
|
||||||
if: ${{ matrix.python-version == env.DEFAULT_PYTHON_VERSION }}
|
if: ${{ matrix.python-version == env.DEFAULT_PYTHON_VERSION }}
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
@ -280,10 +280,40 @@ jobs:
|
|||||||
path: src-ui/junit-report-${{ matrix.shard-index }}.xml
|
path: src-ui/junit-report-${{ matrix.shard-index }}.xml
|
||||||
retention-days: 7
|
retention-days: 7
|
||||||
|
|
||||||
tests-coverage-upload:
|
tests-upload:
|
||||||
name: "Upload to Codecov"
|
name: "Upload test results to Codecov"
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04
|
||||||
if: ${{ !cancelled() }}
|
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:
|
needs:
|
||||||
- tests-backend
|
- tests-backend
|
||||||
- tests-frontend
|
- tests-frontend
|
||||||
@ -303,13 +333,6 @@ jobs:
|
|||||||
path: src-ui/coverage/
|
path: src-ui/coverage/
|
||||||
pattern: playwright-report-*
|
pattern: playwright-report-*
|
||||||
merge-multiple: true
|
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
|
name: Upload frontend coverage to Codecov
|
||||||
uses: codecov/codecov-action@v5
|
uses: codecov/codecov-action@v5
|
||||||
@ -320,14 +343,6 @@ jobs:
|
|||||||
directory: src-ui/coverage/
|
directory: src-ui/coverage/
|
||||||
# dont include backend coverage files here
|
# dont include backend coverage files here
|
||||||
files: '!coverage.xml'
|
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
|
name: Download backend coverage
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
@ -343,13 +358,6 @@ jobs:
|
|||||||
# future expansion
|
# future expansion
|
||||||
flags: backend
|
flags: backend
|
||||||
directory: src/
|
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
|
name: Use Node.js 20
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
|
Loading…
x
Reference in New Issue
Block a user