Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
71 changes: 51 additions & 20 deletions .github/workflows/ports_psoc6.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,31 +51,62 @@ jobs:
needs: server-build
strategy:
matrix:
# This matrix can be also generated in a previous job as a JSON list:
# echo 'test-suite-list=["pin", "signal", ...]' >> $GITHUB_OUTPUT
# Then here use the corresponding variable:
# ${{ fromJson(needs.<job-name>.outputs.test-suite-list) }}
# That way we don´t need to hardcode the values here.
board:
- CY8CPROTO-062-4343W
- CY8CPROTO-063-BLE
- CY8CKIT-062S2-AI
test-suite:
- vfs-flash
- vfs-sdcard
- no-hw-ext
- pin
- signal
- adc
- pwm
- i2c
- spi
- i2s
- time_pulse
- bitstream
- uart
- pdm_pcm
- watchdog
- multi-instance
exclude:
- board: CY8CPROTO-063-BLE
test-suite: vfs-sdcard
- board: CY8CKIT-062S2-AI
test-suite: vfs-sdcard
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can add all excluded tests for CY8CKIT-062S2-AI under one? Like:
test-suite:
- vfs-sdcard
- bitstream
- ...

- board: CY8CKIT-062S2-AI
test-suite: bitstream
- board: CY8CKIT-062S2-AI
test-suite: time_pulse
steps:
- uses: actions/checkout@v4
- 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_psoc6_setup
- name: Setup devices
run: |
cp mpy-psoc6_${{ matrix.board }}_${{ needs.server-build.outputs.commit_sha }}/firmware.hex .
source tools/ci.sh && ci_psoc6_flash_multiple_devices ${{ matrix.board }} firmware.hex tools/psoc6/${{ runner.name }}-devs.yml
- name: Run psoc6 tests
timeout-minutes: 12
run: |
./tests/ports/psoc6/run_psoc6_tests.sh --test-suite ci-tests --board ${{ matrix.board }} --hil ${{ runner.name }}

- name: Container teardown
if: failure() || success()
run: |
source tools/ci.sh && ci_psoc6_teardown
- uses: actions/checkout@v4
- 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_psoc6_setup
- name: Setup devices
run: |
cp mpy-psoc6_${{ matrix.board }}_${{ needs.server-build.outputs.commit_sha }}/firmware.hex .
source tools/ci.sh && ci_psoc6_flash_multiple_devices ${{ matrix.board }} firmware.hex tools/psoc6/${{ runner.name }}-devs.yml
- name: Run psoc6 tests
timeout-minutes: 12
run: |
./tests/ports/psoc6/run_psoc6_tests.sh --test-suite ${{ matrix.test-suite }} --board ${{ matrix.board }} --hil ${{ runner.name }}
- name: Container teardown
if: failure() || success()
run: |
source tools/ci.sh && ci_psoc6_teardown

release:
runs-on: ubuntu-latest
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading