Skip to content

Commit

Permalink
ci: preserve emulator logs for upgrade and persistence tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mmilata committed Feb 26, 2025
1 parent 0491efe commit 649bdcc
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,7 @@ jobs:
env:
TREZOR_UPGRADE_TEST: core
PYTEST_TIMEOUT: 400
TREZOR_PYTEST_LOGS_DIR: ${{ github.workspace }}/tests/
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -381,6 +382,13 @@ jobs:
- uses: ./.github/actions/environment
- run: nix-shell --run "tests/download_emulators.sh"
- 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.
Expand All @@ -399,6 +407,7 @@ jobs:
env:
TREZOR_PROFILING: ${{ matrix.asan == 'noasan' && '1' || '0' }}
PYTEST_TIMEOUT: 400
TREZOR_PYTEST_LOGS_DIR: ${{ github.workspace }}/tests/
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -421,6 +430,13 @@ jobs:
if: always()
continue-on-error: true
- 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:
name: HWI tests
Expand Down

0 comments on commit 649bdcc

Please sign in to comment.