github/workflows/ports_psoc-edge-ifx: Added all tests on PR to main. - #110
Draft
jaenrig-ifx wants to merge 3 commits into
Draft
github/workflows/ports_psoc-edge-ifx: Added all tests on PR to main.#110jaenrig-ifx wants to merge 3 commits into
jaenrig-ifx wants to merge 3 commits into
Conversation
jaenrig-ifx
force-pushed
the
add-full-suite-test-upon-PR
branch
from
May 21, 2026 14:35
ad75008 to
8df0ba5
Compare
jaenrig-ifx
force-pushed
the
psoc-edge-main
branch
3 times, most recently
from
May 28, 2026 00:25
89b948d to
5a48545
Compare
jaenrig-ifx
force-pushed
the
psoc-edge-main
branch
3 times, most recently
from
June 3, 2026 16:31
e2b1dd2 to
6c53d3d
Compare
jaenrig-ifx
force-pushed
the
psoc-edge-main
branch
3 times, most recently
from
June 11, 2026 00:33
9c3756a to
f2abcb6
Compare
jaenrig-ifx
force-pushed
the
psoc-edge-main
branch
3 times, most recently
from
June 12, 2026 08:05
e67f1cf to
90425bc
Compare
jaenrig-ifx
force-pushed
the
psoc-edge-main
branch
7 times, most recently
from
June 26, 2026 12:29
02f6902 to
3b169b6
Compare
jaenrig-ifx
force-pushed
the
psoc-edge-main
branch
5 times, most recently
from
July 5, 2026 00:24
ee8845b to
543c6ee
Compare
jaenrig-ifx
force-pushed
the
psoc-edge-main
branch
5 times, most recently
from
July 11, 2026 00:20
f721963 to
b51ec18
Compare
jaenrig-ifx
force-pushed
the
psoc-edge-main
branch
3 times, most recently
from
July 17, 2026 16:54
b205568 to
99a8112
Compare
Signed-off-by: jaenrig-ifx <enriquezgarcia.external@infineon.com>
jaenrig-ifx
force-pushed
the
add-full-suite-test-upon-PR
branch
from
July 28, 2026 15:04
8df0ba5 to
2eeddbb
Compare
Comment on lines
+18
to
+43
| runs-on: ubuntu-latest | ||
| strategy: | ||
| matrix: | ||
| board: | ||
| - KIT_PSE84_AI | ||
| outputs: | ||
| commit_sha: ${{ steps.commit_sha.outputs.sha_short }} | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v6 | ||
| - name: Install packages | ||
| run: source tools/ci.sh && ci_psoc_edge_setup | ||
| - name: Build | ||
| run: source tools/ci.sh && ci_psoc_edge_build ${{ matrix.board }} | ||
| - name: Gets commit SHA | ||
| if: success() | ||
| id: commit_sha | ||
| run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT | ||
| - name: Save firmware bin | ||
| if: success() | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: mpy-psoc-edge_${{ matrix.board }}_${{ steps.commit_sha.outputs.sha_short }} | ||
| path: ports/psoc-edge/build-${{ matrix.board }}/${{ env.mpy_hex_file }} | ||
|
|
||
| on-target-test: |
Comment on lines
+44
to
+82
| runs-on: | ||
| - self-hosted | ||
| - Linux | ||
| - PSOC-EDGE | ||
| needs: server-build | ||
| strategy: | ||
| matrix: | ||
| board: | ||
| - KIT_PSE84_AI | ||
| steps: | ||
| - name: Fix permissions | ||
| run: echo ${{ secrets.SELF_HOSTED_PASSWORD }} | sudo -S chown -R $(whoami):$(whoami) . | ||
| - name: Checkout code | ||
| uses: actions/checkout@v6 | ||
| - name: Download binaries | ||
| uses: actions/download-artifact@v4 | ||
| - name: Container setup | ||
| run: | | ||
| echo ${{ secrets.SELF_HOSTED_PASSWORD }} | sudo -S chmod 666 /var/run/docker.sock | ||
| source tools/ci.sh && ci_psoc_edge_setup_hil ${{ matrix.board }} | ||
| - name: Setup devices | ||
| run: | | ||
| cp mpy-psoc-edge_${{ matrix.board }}_${{ needs.server-build.outputs.commit_sha }}/${{ env.mpy_hex_file }} tools/psoc-edge | ||
| source tools/ci.sh && ci_psoc_edge_deploy_hil ${{ matrix.board }} ${{ env.mpy_hex_file }} tests/ports/psoc-edge/${{ runner.name }}-devs.yml | ||
| - name: Run all tests | ||
| env: | ||
| pse_test_dir: tests/ports/psoc-edge | ||
| run: | | ||
| devs_file=$pse_test_dir/${{ runner.name }}-devs.yml | ||
| # TODO: Select the UART target via feature query once etdevs-query supports it. | ||
| target_uid=101A1398012D2400 | ||
|
|
||
| target_port=$(etdevs-query address --filter uid=$target_uid --devs-yml $devs_file | head -1) | ||
| cd tests | ||
| python -u run-tests.py -t $target_port | ||
| - name: Container teardown | ||
| if: always() | ||
| run: | | ||
| source tools/ci.sh && ci_psoc_edge_teardown_hil |
Signed-off-by: jaenrig-ifx <enriquezgarcia.external@infineon.com>
Signed-off-by: jaenrig-ifx <enriquezgarcia.external@infineon.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Run all micropython test suite when PR against the main branch.
Maybe this makes the PRs against the main a bit slow. Therefore, maybe we can convert this step a scheduled job daily.
This will be merged only after fixing all the non-skipped jobs 😊