1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-18 04:18:10 +00:00

ci: actions: don't fail for outside contributors

This commit is contained in:
Martin Milata 2024-03-09 18:09:01 +01:00
parent 6a8ce5b5c0
commit 99f2f2bbe9
2 changed files with 12 additions and 2 deletions

View File

@ -217,6 +217,7 @@ jobs:
with: with:
model: ${{ matrix.model }} model: ${{ matrix.model }}
if: ${{ always() && env.ACTIONS_DO_UI_TEST == 'true' }} if: ${{ always() && env.ACTIONS_DO_UI_TEST == 'true' }}
continue-on-error: true
- uses: ./.github/actions/ui-comment - uses: ./.github/actions/ui-comment
if: ${{ failure() && env.ACTIONS_DO_UI_TEST == 'true' }} if: ${{ failure() && env.ACTIONS_DO_UI_TEST == 'true' }}
- uses: actions/upload-artifact@v4 - uses: actions/upload-artifact@v4
@ -264,6 +265,7 @@ jobs:
with: with:
model: ${{ matrix.model }} model: ${{ matrix.model }}
if: always() if: always()
continue-on-error: true
- run: mv core/src/.coverage core/.coverage.test_click || true - run: mv core/src/.coverage core/.coverage.test_click || true
- uses: actions/upload-artifact@v4 - uses: actions/upload-artifact@v4
with: with:
@ -328,6 +330,7 @@ jobs:
with: with:
model: ${{ matrix.model }} model: ${{ matrix.model }}
if: always() if: always()
continue-on-error: true
- run: mv core/src/.coverage core/.coverage.test_persistence || true - run: mv core/src/.coverage core/.coverage.test_persistence || true
- uses: actions/upload-artifact@v4 - uses: actions/upload-artifact@v4
with: with:
@ -599,6 +602,7 @@ jobs:
- core_click_test - core_click_test
- core_persistence_test - core_persistence_test
- core_device_test - core_device_test
continue-on-error: true
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: actions/download-artifact@v4 - uses: actions/download-artifact@v4
@ -611,12 +615,14 @@ jobs:
with: with:
role-to-assume: arn:aws:iam::538326561891:role/gh_actions_deploy_dev_firmware_data role-to-assume: arn:aws:iam::538326561891:role/gh_actions_deploy_dev_firmware_data
aws-region: eu-west-1 aws-region: eu-west-1
- run: "for F in screens_*.tar; do tar xvf $F; done" continue-on-error: true
- run: "for F in screens_*.tar; do tar xvf $F; done || true"
- run: nix-shell --run "poetry run python -m tests.ui_tests.reporting master-diff TT TR" - run: nix-shell --run "poetry run python -m tests.ui_tests.reporting master-diff TT TR"
- run: mv tests/ui_tests/reports/master_diff . - run: mv tests/ui_tests/reports/master_diff .
- name: Upload diff from main branch - name: Upload diff from main branch
run: | run: |
aws s3 sync master_diff s3://data.trezor.io/dev/firmware/master_diff/${{ github.run_id }} aws s3 sync master_diff s3://data.trezor.io/dev/firmware/master_diff/${{ github.run_id }}
continue-on-error: true
core_ui_comment: core_ui_comment:
name: Post comment with UI diff URLs name: Post comment with UI diff URLs

View File

@ -97,6 +97,7 @@ jobs:
- uses: ./.github/actions/ui-report - uses: ./.github/actions/ui-report
with: with:
model: T1B1 model: T1B1
continue-on-error: true
if: ${{ always() && matrix.coins == 'universal' }} if: ${{ always() && matrix.coins == 'universal' }}
- uses: ./.github/actions/ui-comment - uses: ./.github/actions/ui-comment
if: ${{ failure() && matrix.coins == 'universal' }} if: ${{ failure() && matrix.coins == 'universal' }}
@ -150,6 +151,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: needs:
- legacy_device_test - legacy_device_test
continue-on-error: true
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: actions/download-artifact@v4 - uses: actions/download-artifact@v4
@ -162,12 +164,14 @@ jobs:
with: with:
role-to-assume: arn:aws:iam::538326561891:role/gh_actions_deploy_dev_firmware_data role-to-assume: arn:aws:iam::538326561891:role/gh_actions_deploy_dev_firmware_data
aws-region: eu-west-1 aws-region: eu-west-1
- run: "for F in screens_*.tar; do tar xvf $F; done" continue-on-error: true
- run: "for F in screens_*.tar; do tar xvf $F; done || true"
- run: nix-shell --run "poetry run python -m tests.ui_tests.reporting master-diff T1" - run: nix-shell --run "poetry run python -m tests.ui_tests.reporting master-diff T1"
- run: mv tests/ui_tests/reports/master_diff . - run: mv tests/ui_tests/reports/master_diff .
- name: Upload main branch diff - name: Upload main branch diff
run: | run: |
aws s3 sync master_diff s3://data.trezor.io/dev/firmware/master_diff/${{ github.run_id }} aws s3 sync master_diff s3://data.trezor.io/dev/firmware/master_diff/${{ github.run_id }}
continue-on-error: true
legacy_ui_comment: legacy_ui_comment:
name: Post comment with UI diff URLs name: Post comment with UI diff URLs