Skip to content

Commit

Permalink
ci: test translations
Browse files Browse the repository at this point in the history
  • Loading branch information
mmilata committed Feb 26, 2024
1 parent a2b53e3 commit 7faae19
Showing 1 changed file with 27 additions and 3 deletions.
30 changes: 27 additions & 3 deletions .github/workflows/core.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: Core

on: [pull_request]
on:
pull_request:
schedule:
- cron: '15 23 * * *' # every day @ 23:15

permissions:
id-token: write # for fetching the OIDC token
Expand All @@ -20,6 +23,7 @@ jobs:
name: Build firmware
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
model: [T2T1, T2B1]
coins: [universal, btconly]
Expand Down Expand Up @@ -65,6 +69,7 @@ jobs:
name: Build emu
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
model: [T2T1, T2B1]
coins: [universal, btconly]
Expand Down Expand Up @@ -102,6 +107,7 @@ jobs:
name: Python unit tests
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
model: [T2T1, T2B1]
asan: ${{ fromJSON(github.event_name == 'schedule' && '["noasan", "asan"]' || '["noasan"]') }}
Expand All @@ -122,6 +128,7 @@ jobs:
runs-on: ubuntu-latest
needs: core_emu
strategy:
fail-fast: false
matrix:
model: [T2T1, T2B1]
asan: ${{ fromJSON(github.event_name == 'schedule' && '["noasan", "asan"]' || '["noasan"]') }}
Expand Down Expand Up @@ -151,6 +158,7 @@ jobs:
runs-on: ubuntu-latest
needs: core_emu
strategy:
fail-fast: false
matrix:
model: [T2T1, T2B1]
steps:
Expand Down Expand Up @@ -179,6 +187,8 @@ jobs:
model: [T2T1, T2B1]
coins: [universal, btconly]
asan: ${{ fromJSON(github.event_name == 'schedule' && '["noasan", "asan"]' || '["noasan"]') }}
# lang: ${{ fromJSON(github.event_name == 'schedule' && '["en", "cs", "fr", "de", "es"]' || '["en"]') }}
lang: [en, cs, fr, de, es]
# T2B1 fails due to https://github.com/trezor/trezor-firmware/issues/3280
# remove after single global layout is implemented (or bug above fixed):
exclude:
Expand All @@ -190,6 +200,7 @@ jobs:
ADDRESS_SANITIZER: ${{ matrix.asan == 'asan' && '1' || '0' }}
PYTEST_TIMEOUT: ${{ matrix.asan == 'asan' && 600 || 400 }}
ACTIONS_DO_UI_TEST: ${{ matrix.coins == 'universal' && matrix.asan == 'noasan' }}
TEST_LANG: ${{ matrix.lang }}
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -205,7 +216,7 @@ jobs:
if: failure()
- uses: actions/upload-artifact@v4
with:
name: core-device-${{ matrix.model }}-${{ matrix.coins }}-${{ matrix.asan }}
name: core-device-${{ matrix.model }}-${{ matrix.coins }}-${{ matrix.lang }}-${{ matrix.asan }}
path: tests/trezor.log
retention-days: 7
if: always()
Expand All @@ -217,7 +228,7 @@ jobs:
if: ${{ failure() && env.ACTIONS_DO_UI_TEST == 'true' }}
- uses: actions/upload-artifact@v4
with:
name: core-coverage-${{ matrix.model }}-${{ github.job }}-${{ strategy.job-index }}
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
Expand All @@ -229,13 +240,17 @@ jobs:
runs-on: ubuntu-latest
needs: core_emu
strategy:
fail-fast: false
matrix:
model: [T2T1, T2B1]
asan: ${{ fromJSON(github.event_name == 'schedule' && '["noasan", "asan"]' || '["noasan"]') }}
# lang: ${{ fromJSON(github.event_name == 'schedule' && '["en", "cs", "fr", "de", "es"]' || '["en"]') }}
lang: [en, cs, fr, de, es]
env:
TREZOR_PROFILING: ${{ matrix.asan == 'noasan' && '1' || '0' }}
# MULTICORE: 4 # more could interfere with other jobs
PYTEST_TIMEOUT: 400
TEST_LANG: ${{ matrix.lang }}
steps:
- uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -274,6 +289,7 @@ jobs:
runs-on: ubuntu-latest
needs: core_emu
strategy:
fail-fast: false
matrix:
model: [T2T1] # FIXME: T2B1 https://github.com/trezor/trezor-firmware/issues/2724
asan: ${{ fromJSON(github.event_name == 'schedule' && '["noasan", "asan"]' || '["noasan"]') }}
Expand All @@ -300,6 +316,7 @@ jobs:
runs-on: ubuntu-latest
needs: core_emu
strategy:
fail-fast: false
matrix:
model: [T2T1] # TODO T2B1 https://github.com/trezor/trezor-firmware/issues/2724
asan: ${{ fromJSON(github.event_name == 'schedule' && '["noasan", "asan"]' || '["noasan"]') }}
Expand Down Expand Up @@ -338,6 +355,7 @@ jobs:
runs-on: ubuntu-latest
needs: core_emu
strategy:
fail-fast: false
matrix:
model: [T2T1] # TODO T2B1
steps:
Expand Down Expand Up @@ -395,6 +413,7 @@ jobs:
runs-on: ubuntu-latest
needs: core_firmware
strategy:
fail-fast: false
matrix:
model: [T2T1, T2B1]
steps:
Expand All @@ -417,6 +436,7 @@ jobs:
runs-on: ubuntu-latest
needs: core_firmware
strategy:
fail-fast: false
matrix:
model: [T2T1, T2B1]
steps:
Expand All @@ -442,6 +462,7 @@ jobs:
runs-on: ubuntu-latest
needs: core_emu
strategy:
fail-fast: false
matrix:
model: [T2T1, T2B1]
asan: ${{ fromJSON(github.event_name == 'schedule' && '["noasan", "asan"]' || '["noasan"]') }}
Expand Down Expand Up @@ -484,6 +505,7 @@ jobs:
runs-on: ubuntu-latest
needs: core_emu
strategy:
fail-fast: false
matrix:
model: [T2T1, T2B1]
asan: ${{ fromJSON(github.event_name == 'schedule' && '["noasan", "asan"]' || '["noasan"]') }}
Expand Down Expand Up @@ -521,6 +543,7 @@ jobs:
runs-on: ubuntu-latest
needs: core_emu
strategy:
fail-fast: false
matrix:
model: [T2T1] # XXX T2B1 https://github.com/trezor/trezor-firmware/issues/2724
asan: ${{ fromJSON(github.event_name == 'schedule' && '["noasan", "asan"]' || '["noasan"]') }}
Expand Down Expand Up @@ -563,6 +586,7 @@ jobs:
- core_u2f_test
- core_fido2_test
strategy:
fail-fast: false
matrix:
model: [T2T1, T2B1]
# T2B1 fails due to https://github.com/trezor/trezor-firmware/issues/3280
Expand Down

0 comments on commit 7faae19

Please sign in to comment.