mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-19 05:58:09 +00:00
ci: fix coverage artifact upload
This commit is contained in:
parent
2f1ad766d0
commit
884d5b07cf
12
.github/actions/upload-coverage/action.yml
vendored
Normal file
12
.github/actions/upload-coverage/action.yml
vendored
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
name: 'Upload coverage data'
|
||||||
|
runs:
|
||||||
|
using: "composite"
|
||||||
|
steps:
|
||||||
|
- run: mv core/src/.coverage core/src/.coverage.${{ github.job }}${{ strategy.job-index }} || true
|
||||||
|
shell: sh
|
||||||
|
- uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: core-coverage-${{ matrix.model }}-${{ github.job }}-${{ strategy.job-index }}
|
||||||
|
path: core/src/.coverage.*
|
||||||
|
retention-days: 7
|
||||||
|
include-hidden-files: true
|
45
.github/workflows/core.yml
vendored
45
.github/workflows/core.yml
vendored
@ -284,12 +284,7 @@ jobs:
|
|||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
- uses: ./.github/actions/ui-comment
|
- uses: ./.github/actions/ui-comment
|
||||||
if: ${{ failure() && env.ACTIONS_DO_UI_TEST == 'true' }}
|
if: ${{ failure() && env.ACTIONS_DO_UI_TEST == 'true' }}
|
||||||
- uses: actions/upload-artifact@v4
|
- uses: ./.github/actions/upload-coverage
|
||||||
with:
|
|
||||||
name: core-coverage-${{ matrix.model }}-${{ matrix.lang }}-${{ github.job }}-${{ strategy.job-index }}
|
|
||||||
# there will be more coverage files (one per core)
|
|
||||||
path: core/src/.coverage.*
|
|
||||||
retention-days: 7
|
|
||||||
|
|
||||||
# Click tests - UI.
|
# Click tests - UI.
|
||||||
# See [docs/tests/click-tests](../tests/click-tests.md) for more info.
|
# See [docs/tests/click-tests](../tests/click-tests.md) for more info.
|
||||||
@ -338,12 +333,8 @@ jobs:
|
|||||||
status: ${{ job.status }}
|
status: ${{ job.status }}
|
||||||
if: always()
|
if: always()
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
- run: mv core/src/.coverage core/.coverage.test_click || true
|
- uses: ./.github/actions/upload-coverage
|
||||||
- uses: actions/upload-artifact@v4
|
|
||||||
with:
|
|
||||||
name: core-coverage-${{ matrix.model }}-${{ github.job }}-${{ strategy.job-index }}
|
|
||||||
path: core/.coverage.*
|
|
||||||
retention-days: 7
|
|
||||||
|
|
||||||
# Upgrade tests.
|
# Upgrade tests.
|
||||||
# See [docs/tests/upgrade-tests](../tests/upgrade-tests.md) for more info.
|
# See [docs/tests/upgrade-tests](../tests/upgrade-tests.md) for more info.
|
||||||
@ -414,12 +405,7 @@ jobs:
|
|||||||
status: ${{ job.status }}
|
status: ${{ job.status }}
|
||||||
if: always()
|
if: always()
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
- run: mv core/src/.coverage core/.coverage.test_persistence || true
|
- uses: ./.github/actions/upload-coverage
|
||||||
- uses: actions/upload-artifact@v4
|
|
||||||
with:
|
|
||||||
name: core-coverage-${{ matrix.model }}-${{ github.job }}-${{ strategy.job-index }}
|
|
||||||
path: core/.coverage.*
|
|
||||||
retention-days: 7
|
|
||||||
|
|
||||||
core_hwi_test:
|
core_hwi_test:
|
||||||
name: HWI tests
|
name: HWI tests
|
||||||
@ -567,12 +553,8 @@ jobs:
|
|||||||
core/tests/trezor_monero_tests.log
|
core/tests/trezor_monero_tests.log
|
||||||
retention-days: 7
|
retention-days: 7
|
||||||
if: always()
|
if: always()
|
||||||
- run: mv core/src/.coverage core/.coverage.test_emu_monero || true
|
- uses: ./.github/actions/upload-coverage
|
||||||
- uses: actions/upload-artifact@v4
|
|
||||||
with:
|
|
||||||
name: core-coverage-${{ matrix.model }}-${{ github.job }}-${{ strategy.job-index }}
|
|
||||||
path: core/.coverage.*
|
|
||||||
retention-days: 7
|
|
||||||
|
|
||||||
# Tests for U2F and HID.
|
# Tests for U2F and HID.
|
||||||
core_u2f_test:
|
core_u2f_test:
|
||||||
@ -607,12 +589,7 @@ jobs:
|
|||||||
path: tests/trezor.log
|
path: tests/trezor.log
|
||||||
retention-days: 7
|
retention-days: 7
|
||||||
if: always()
|
if: always()
|
||||||
- run: mv core/src/.coverage core/.coverage.test_emu_u2f || true
|
- uses: ./.github/actions/upload-coverage
|
||||||
- uses: actions/upload-artifact@v4
|
|
||||||
with:
|
|
||||||
name: core-coverage-${{ matrix.model }}-${{ github.job }}-${{ strategy.job-index }}
|
|
||||||
path: core/.coverage.*
|
|
||||||
retention-days: 7
|
|
||||||
|
|
||||||
# FIDO2 device tests.
|
# FIDO2 device tests.
|
||||||
core_fido2_test:
|
core_fido2_test:
|
||||||
@ -647,12 +624,7 @@ jobs:
|
|||||||
tests/trezor.log
|
tests/trezor.log
|
||||||
retention-days: 7
|
retention-days: 7
|
||||||
if: always()
|
if: always()
|
||||||
- run: mv core/src/.coverage core/.coverage.test_emu_fido2 || true
|
- uses: ./.github/actions/upload-coverage
|
||||||
- uses: actions/upload-artifact@v4
|
|
||||||
with:
|
|
||||||
name: core-coverage-${{ matrix.model }}-${{ github.job }}-${{ strategy.job-index }}
|
|
||||||
path: core/.coverage.*
|
|
||||||
retention-days: 7
|
|
||||||
|
|
||||||
core_coverage_report:
|
core_coverage_report:
|
||||||
name: Coverage report
|
name: Coverage report
|
||||||
@ -690,6 +662,7 @@ jobs:
|
|||||||
name: core-coverage-report-${{ matrix.model }}
|
name: core-coverage-report-${{ matrix.model }}
|
||||||
path: core/htmlcov
|
path: core/htmlcov
|
||||||
retention-days: 7
|
retention-days: 7
|
||||||
|
include-hidden-files: true
|
||||||
|
|
||||||
core_ui_main:
|
core_ui_main:
|
||||||
name: UI diff from main branch
|
name: UI diff from main branch
|
||||||
|
Loading…
Reference in New Issue
Block a user