Simpad: Add pulldown on VBUS regulator #4
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
| name: test images | |
| on: [push, pull_request] | |
| jobs: | |
| labgrid-pytest: | |
| runs-on: ubuntu-latest | |
| container: | |
| image: ghcr.io/barebox/barebox/barebox-ci:latest | |
| # allow mounting and devtmpfs in the container | |
| options: --user=root --privileged -v /dev:/dev | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - ARCH: arm | |
| lgenv: 'test/arm/*@multi_v7_defconfig.yaml' | |
| defconfig: multi_v7_defconfig | |
| - ARCH: arm | |
| lgenv: test/arm/multi_v8_defconfig.yaml | |
| defconfig: multi_v8_defconfig | |
| - ARCH: mips | |
| lgenv: test/mips/qemu-malta_defconfig.yaml | |
| defconfig: qemu-malta_defconfig | |
| - ARCH: mips | |
| lgenv: test/mips/qemu-malta64el_defconfig.yaml | |
| defconfig: qemu-malta64el_defconfig | |
| - ARCH: openrisc | |
| lgenv: test/openrisc/generic_defconfig.yaml | |
| defconfig: generic_defconfig | |
| - ARCH: x86 | |
| lgenv: test/x86/efi_defconfig.yaml | |
| defconfig: efi_defconfig | |
| - ARCH: riscv | |
| lgenv: test/riscv/qemu@virt32_defconfig.yaml | |
| defconfig: virt32_defconfig | |
| - ARCH: riscv | |
| lgenv: 'test/riscv/qemu-virt64@rv64i_defconfig.yaml' | |
| defconfig: rv64i_defconfig | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v3 | |
| - name: Build | |
| run: | | |
| export ARCH=${{matrix.arch}} | |
| ./test/generate-dummy-fw.sh | |
| ./MAKEALL -O build-${{matrix.arch}} -k test/kconfig/enable_self_test.kconf \ | |
| -k test/kconfig/disable_target_tools.kconf ${{matrix.defconfig}} | |
| if [ ${{matrix.arch}} = "riscv" ]; then | |
| cp /usr/share/qemu/opensbi-riscv32-generic-fw_dynamic.bin build-${{matrix.arch}} | |
| fi | |
| - name: labgrid-pytest | |
| run: | | |
| export KBUILD_OUTPUT=build-${{matrix.arch}} | |
| for i in ${{matrix.lgenv}}; do | |
| grep -wqe QEMUDriver: "$i" || continue | |
| cfg=$(basename $i .yaml) | |
| echo "Testing $cfg" | |
| labgrid-pytest --lg-env $i test/py --verbosity=1 \ | |
| --junitxml=$cfg.tests.xml --lg-log=log/$cfg | |
| done | |
| - name: Publish Test Results | |
| uses: EnricoMi/publish-unit-test-result-action@v2 | |
| if: always() | |
| with: | |
| files: ./*.tests.xml | |
| - name: Publish Labgrid Log Results | |
| uses: actions/upload-artifact@v3 | |
| if: always() | |
| with: | |
| name: Console Logs | |
| path: log/ | |
| if-no-files-found: error |