mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-02-26 06:12:01 +00:00
fix(ci): remove unnecessary code changes [no changelog]
This commit is contained in:
parent
26d794e1e9
commit
8070d18dcf
31
.github/workflows/core.yml
vendored
31
.github/workflows/core.yml
vendored
@ -5,14 +5,14 @@ on:
|
|||||||
types:
|
types:
|
||||||
- opened
|
- opened
|
||||||
- reopened
|
- reopened
|
||||||
- synchronize # branch head update
|
- synchronize # branch head update
|
||||||
- labeled
|
- labeled
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: "15 23 * * *" # every day @ 23:15
|
- cron: '15 23 * * *' # every day @ 23:15
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- "release/**"
|
- 'release/**'
|
||||||
|
|
||||||
# cancel any previous runs on the same PR
|
# cancel any previous runs on the same PR
|
||||||
concurrency:
|
concurrency:
|
||||||
@ -20,9 +20,9 @@ concurrency:
|
|||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
id-token: write # for fetching the OIDC token
|
id-token: write # for fetching the OIDC token
|
||||||
contents: read # for actions/checkout
|
contents: read # for actions/checkout
|
||||||
pull-requests: write # For dflook comments on PR
|
pull-requests: write # For dflook comments on PR
|
||||||
|
|
||||||
env:
|
env:
|
||||||
PULL_COMMENT: |
|
PULL_COMMENT: |
|
||||||
@ -409,6 +409,7 @@ jobs:
|
|||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
- uses: ./.github/actions/upload-coverage
|
- uses: ./.github/actions/upload-coverage
|
||||||
|
|
||||||
|
|
||||||
# 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.
|
||||||
core_upgrade_test:
|
core_upgrade_test:
|
||||||
@ -441,6 +442,7 @@ jobs:
|
|||||||
- 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"
|
||||||
|
|
||||||
|
|
||||||
# Persistence tests - UI.
|
# Persistence tests - UI.
|
||||||
core_persistence_test:
|
core_persistence_test:
|
||||||
name: Persistence tests (${{ matrix.model }}, ${{ matrix.asan }}${{ matrix.protocol=='v2' && ', THP' || ''}})
|
name: Persistence tests (${{ matrix.model }}, ${{ matrix.asan }}${{ matrix.protocol=='v2' && ', THP' || ''}})
|
||||||
@ -487,7 +489,7 @@ jobs:
|
|||||||
|
|
||||||
core_hwi_test:
|
core_hwi_test:
|
||||||
name: HWI tests
|
name: HWI tests
|
||||||
if: false # XXX currently failing
|
if: false # XXX currently failing
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: core_emu
|
needs: core_emu
|
||||||
@ -504,7 +506,7 @@ jobs:
|
|||||||
name: core-emu-${{ matrix.model }}-universal-debuglink-noasan-protocol_v1
|
name: core-emu-${{ matrix.model }}-universal-debuglink-noasan-protocol_v1
|
||||||
path: core/build
|
path: core/build
|
||||||
- run: chmod +x core/build/unix/trezor-emu-core*
|
- run: chmod +x core/build/unix/trezor-emu-core*
|
||||||
- uses: ./.github/actions/environment # XXX poetry maybe not needed
|
- uses: ./.github/actions/environment # XXX poetry maybe not needed
|
||||||
- run: nix-shell --run "git clone --depth=1 https://github.com/bitcoin-core/HWI.git"
|
- run: nix-shell --run "git clone --depth=1 https://github.com/bitcoin-core/HWI.git"
|
||||||
# see python_test for explanation of _PYTHON_SYSCONFIGDATA_NAME
|
# see python_test for explanation of _PYTHON_SYSCONFIGDATA_NAME
|
||||||
- run: nix-shell --arg fullDeps true --run "unset _PYTHON_SYSCONFIGDATA_NAME && cd HWI && poetry install && poetry run ./test/test_trezor.py --model_t ../core/build/unix/trezor-emu-core bitcoind"
|
- run: nix-shell --arg fullDeps true --run "unset _PYTHON_SYSCONFIGDATA_NAME && cd HWI && poetry install && poetry run ./test/test_trezor.py --model_t ../core/build/unix/trezor-emu-core bitcoind"
|
||||||
@ -516,7 +518,7 @@ jobs:
|
|||||||
|
|
||||||
core_memory_profile:
|
core_memory_profile:
|
||||||
name: Memory allocation report
|
name: Memory allocation report
|
||||||
if: false # NOTE manual job, comment out to run
|
if: false # NOTE manual job, comment out to run
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
TREZOR_MODEL: T2T1
|
TREZOR_MODEL: T2T1
|
||||||
@ -552,14 +554,14 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
model: [T2T1] # FIXME: checker.py lacks awareness of U5 flash layout
|
model: [T2T1] # FIXME: checker.py lacks awareness of U5 flash layout
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
- uses: actions/download-artifact@v4
|
- uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: core-firmware-${{ matrix.model }}-universal-normal-protocol_v1 # FIXME: s/normal/debuglink/
|
name: core-firmware-${{ matrix.model }}-universal-normal-protocol_v1 # FIXME: s/normal/debuglink/
|
||||||
path: core/build
|
path: core/build
|
||||||
- uses: ./.github/actions/environment
|
- uses: ./.github/actions/environment
|
||||||
- run: nix-shell --run "poetry run core/tools/size/checker.py core/build/firmware/firmware.elf"
|
- run: nix-shell --run "poetry run core/tools/size/checker.py core/build/firmware/firmware.elf"
|
||||||
@ -575,7 +577,7 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
model: [T2T1] # FIXME: T2T1 url is hardcoded in compare_master.py
|
model: [T2T1] # FIXME: T2T1 url is hardcoded in compare_master.py
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
@ -638,6 +640,7 @@ jobs:
|
|||||||
if: always()
|
if: always()
|
||||||
- uses: ./.github/actions/upload-coverage
|
- uses: ./.github/actions/upload-coverage
|
||||||
|
|
||||||
|
|
||||||
# Tests for U2F and HID.
|
# Tests for U2F and HID.
|
||||||
core_u2f_test:
|
core_u2f_test:
|
||||||
name: U2F test (${{ matrix.model }}, ${{ matrix.asan }}${{ matrix.protocol=='v2' && ', THP' || ''}})
|
name: U2F test (${{ matrix.model }}, ${{ matrix.asan }}${{ matrix.protocol=='v2' && ', THP' || ''}})
|
||||||
@ -688,7 +691,7 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
model: [T2T1, T3T1] # XXX T3B1 https://github.com/trezor/trezor-firmware/issues/2724
|
model: [T2T1, T3T1] # XXX T3B1 https://github.com/trezor/trezor-firmware/issues/2724
|
||||||
asan: ${{ fromJSON(needs.param.outputs.asan) }}
|
asan: ${{ fromJSON(needs.param.outputs.asan) }}
|
||||||
protocol: [v1]
|
protocol: [v1]
|
||||||
include:
|
include:
|
||||||
@ -797,7 +800,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- run: sleep 1m # try avoiding github api rate limit
|
- run: sleep 1m # try avoiding github api rate limit
|
||||||
- uses: ./.github/actions/ui-comment
|
- uses: ./.github/actions/ui-comment
|
||||||
|
|
||||||
core_upload_emu:
|
core_upload_emu:
|
||||||
|
Loading…
Reference in New Issue
Block a user