mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-02-04 11:51:50 +00:00
a75a9f29d8
For example: https://github.com/trezor/trezor-firmware/actions/runs/12976369614/job/36188913357 Single `.coverage` files were renamed, but `make test_emu_ui_multicore` generates multiple `.coverage.gw*` files, which may overwrite each other in case there are multiple similar CI jobs (e.g. when translation-related jobs are enabled). [no changelog]
18 lines
599 B
YAML
18 lines
599 B
YAML
name: 'Upload coverage data'
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
# add per-job suffix so the .coverage files won't be overwritten during merge (by `core_coverage_report`)
|
|
- run: |
|
|
for F in core/src/.coverage core/src/.coverage.gw*
|
|
do
|
|
mv -v $F $F.${{ github.job }}${{ strategy.job-index }} || true
|
|
done
|
|
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
|