|
79 | 79 | - toolchain-pre
|
80 | 80 | - toolchain-post
|
81 | 81 | - hosttools
|
| 82 | + - test-pre |
| 83 | + - test-post |
82 | 84 |
|
83 | 85 | concurrency:
|
84 | 86 | group: ${{ github.event_name == 'workflow_dispatch' && github.run_id || github.head_ref || github.ref }}
|
@@ -147,6 +149,8 @@ jobs:
|
147 | 149 | ${{ contains(github.event.pull_request.labels.*.name, 'debug-toolchain-pre') }} && MATRIX_DEBUG="toolchain-pre"
|
148 | 150 | ${{ contains(github.event.pull_request.labels.*.name, 'debug-toolchain-post') }} && MATRIX_DEBUG="toolchain-post"
|
149 | 151 | ${{ contains(github.event.pull_request.labels.*.name, 'debug-hosttools') }} && MATRIX_DEBUG="hosttools"
|
| 152 | + ${{ contains(github.event.pull_request.labels.*.name, 'debug-test-pre') }} && MATRIX_DEBUG="test-pre" |
| 153 | + ${{ contains(github.event.pull_request.labels.*.name, 'debug-test-post') }} && MATRIX_DEBUG="test-post" |
150 | 154 | elif [ "${{ github.event_name }}" == "workflow_dispatch" ]; then
|
151 | 155 | # Set configurations based on the user selection
|
152 | 156 | case '${{ github.event.inputs.host }}' in
|
@@ -1608,6 +1612,12 @@ jobs:
|
1608 | 1612 | # Install Python dependencies from the checked out Zephyr repository.
|
1609 | 1613 | pip3 install -r ${ZEPHYR_ROOT}/scripts/requirements.txt
|
1610 | 1614 |
|
| 1615 | + - name: Setup debug session (pre) |
| 1616 | + if: always() && needs.setup.outputs.debug == 'test-pre' |
| 1617 | + uses: mxschmitt/action-tmate@v3 |
| 1618 | + with: |
| 1619 | + limit-access-to-actor: true |
| 1620 | + |
1611 | 1621 | - name: Run test suites
|
1612 | 1622 | run: |
|
1613 | 1623 | # Activate Python virtual environment
|
@@ -1789,6 +1799,12 @@ jobs:
|
1789 | 1799 | ${TEST_ARGS} \
|
1790 | 1800 | ${PLATFORM_ARGS}
|
1791 | 1801 |
|
| 1802 | + - name: Setup debug session (post) |
| 1803 | + if: always() && needs.setup.outputs.debug == 'test-post' |
| 1804 | + uses: mxschmitt/action-tmate@v3 |
| 1805 | + with: |
| 1806 | + limit-access-to-actor: true |
| 1807 | + |
1792 | 1808 | - name: Publish test results
|
1793 | 1809 | if: always()
|
1794 | 1810 | uses: actions/upload-artifact@v4
|
|
0 commit comments