Skip to content

github/workflows/ports_psoc-edge-ifx: Added all tests on PR to main. - #110

Draft
jaenrig-ifx wants to merge 3 commits into
psoc-edge-mainfrom
add-full-suite-test-upon-PR
Draft

github/workflows/ports_psoc-edge-ifx: Added all tests on PR to main.#110
jaenrig-ifx wants to merge 3 commits into
psoc-edge-mainfrom
add-full-suite-test-upon-PR

Conversation

@jaenrig-ifx

Copy link
Copy Markdown
Member

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 😊

@jaenrig-ifx
jaenrig-ifx force-pushed the add-full-suite-test-upon-PR branch from ad75008 to 8df0ba5 Compare May 21, 2026 14:35
@jaenrig-ifx
jaenrig-ifx force-pushed the psoc-edge-main branch 3 times, most recently from 89b948d to 5a48545 Compare May 28, 2026 00:25
@jaenrig-ifx
jaenrig-ifx force-pushed the psoc-edge-main branch 3 times, most recently from e2b1dd2 to 6c53d3d Compare June 3, 2026 16:31
@jaenrig-ifx
jaenrig-ifx force-pushed the psoc-edge-main branch 3 times, most recently from 9c3756a to f2abcb6 Compare June 11, 2026 00:33
@jaenrig-ifx
jaenrig-ifx force-pushed the psoc-edge-main branch 3 times, most recently from e67f1cf to 90425bc Compare June 12, 2026 08:05
@jaenrig-ifx
jaenrig-ifx force-pushed the psoc-edge-main branch 7 times, most recently from 02f6902 to 3b169b6 Compare June 26, 2026 12:29
@jaenrig-ifx
jaenrig-ifx force-pushed the psoc-edge-main branch 5 times, most recently from ee8845b to 543c6ee Compare July 5, 2026 00:24
@jaenrig-ifx
jaenrig-ifx force-pushed the psoc-edge-main branch 5 times, most recently from f721963 to b51ec18 Compare July 11, 2026 00:20
@jaenrig-ifx
jaenrig-ifx force-pushed the psoc-edge-main branch 3 times, most recently from b205568 to 99a8112 Compare July 17, 2026 16:54
Signed-off-by: jaenrig-ifx <enriquezgarcia.external@infineon.com>
@jaenrig-ifx
jaenrig-ifx force-pushed the add-full-suite-test-upon-PR branch from 8df0ba5 to 2eeddbb Compare July 28, 2026 15:04
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants