mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-06-27 02:12:35 +00:00
ci: preserve emulator logs for upgrade and persistence tests
This commit is contained in:
parent
244b4f612e
commit
0efb201d6b
16
.github/workflows/core.yml
vendored
16
.github/workflows/core.yml
vendored
@ -371,6 +371,7 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
TREZOR_UPGRADE_TEST: core
|
TREZOR_UPGRADE_TEST: core
|
||||||
PYTEST_TIMEOUT: 400
|
PYTEST_TIMEOUT: 400
|
||||||
|
TREZOR_PYTEST_LOGS_DIR: ${{ github.workspace }}/tests/
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
@ -383,6 +384,13 @@ jobs:
|
|||||||
- uses: ./.github/actions/environment
|
- uses: ./.github/actions/environment
|
||||||
- run: nix-shell --run "tests/download_emulators.sh"
|
- run: nix-shell --run "tests/download_emulators.sh"
|
||||||
- run: nix-shell --run "poetry run pytest tests/upgrade_tests"
|
- run: nix-shell --run "poetry run pytest tests/upgrade_tests"
|
||||||
|
- uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: core-test-upgrade-${{ matrix.model }}-${{ matrix.asan }}
|
||||||
|
path: |
|
||||||
|
tests/trezor.log
|
||||||
|
retention-days: 7
|
||||||
|
if: always()
|
||||||
|
|
||||||
|
|
||||||
# Persistence tests - UI.
|
# Persistence tests - UI.
|
||||||
@ -401,6 +409,7 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
TREZOR_PROFILING: ${{ matrix.asan == 'noasan' && '1' || '0' }}
|
TREZOR_PROFILING: ${{ matrix.asan == 'noasan' && '1' || '0' }}
|
||||||
PYTEST_TIMEOUT: 400
|
PYTEST_TIMEOUT: 400
|
||||||
|
TREZOR_PYTEST_LOGS_DIR: ${{ github.workspace }}/tests/
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
@ -423,6 +432,13 @@ jobs:
|
|||||||
if: always()
|
if: always()
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
- uses: ./.github/actions/upload-coverage
|
- uses: ./.github/actions/upload-coverage
|
||||||
|
- uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: core-test-persistence-${{ matrix.model }}-${{ matrix.asan }}
|
||||||
|
path: |
|
||||||
|
tests/trezor.log
|
||||||
|
retention-days: 7
|
||||||
|
if: always()
|
||||||
|
|
||||||
core_hwi_test:
|
core_hwi_test:
|
||||||
name: HWI tests
|
name: HWI tests
|
||||||
|
Loading…
Reference in New Issue
Block a user