From 937829c96a1ef5e6cdcdba547a19ac99d359f340 Mon Sep 17 00:00:00 2001 From: Andreas Anderberg Date: Tue, 6 Feb 2024 16:36:35 +0100 Subject: [PATCH] testing --- .github/workflows/ceedling.yaml | 40 ++++++++++++++++++++++++--------- zephyr/ci-dummy-west.yml | 15 +++++++++++++ 2 files changed, 44 insertions(+), 11 deletions(-) create mode 100644 zephyr/ci-dummy-west.yml diff --git a/.github/workflows/ceedling.yaml b/.github/workflows/ceedling.yaml index 78291da..24764d0 100644 --- a/.github/workflows/ceedling.yaml +++ b/.github/workflows/ceedling.yaml @@ -2,7 +2,7 @@ name: Ceedling Unit Tests on: push: - branches: [ master ] + branches: [ master,anan_zephyr_test ] pull_request: branches: [ master ] @@ -12,20 +12,38 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - name: Set up Ruby - uses: ruby/setup-ruby@v1 + - name: Checkout + uses: actions/checkout@v3 + with: + path: ucxclient + + - name: Set up Python + uses: actions/setup-python@v4 with: - ruby-version: 2.7 - - name: Install Ceedling - run: gem install ceedling - - name: Run Unit Tests + python-version: 3.11 + + - name: Copy west.yml + shell: bash run: | - ceedling test:all + cp ucxclient/zephyr/ci-dummy-west.yml ucxclient/west.yml + + - name: Setup Zephyr project + uses: zephyrproject-rtos/action-zephyr-setup@v1 + with: + app-path: ucxclient + toolchains: x86_64-zephyr-elf + + - name: Build firmware + working-directory: ucxclient/ + shell: bash + run: | + west twister -T zephyr/ --integration + - name: Process Test results uses: dorny/test-reporter@v1 if: always() # always run even if the previous step fails with: name: Unit Test Results - path: 'build/artifacts/test/report_junit.xml' - reporter: jest-junit + working-directory: ucxclient/ + path: 'twister-out/twister_report.xml' + reporter: java-junit \ No newline at end of file diff --git a/zephyr/ci-dummy-west.yml b/zephyr/ci-dummy-west.yml new file mode 100644 index 0000000..8cee698 --- /dev/null +++ b/zephyr/ci-dummy-west.yml @@ -0,0 +1,15 @@ +manifest: + self: + west-commands: scripts/west-commands.yml + + remotes: + - name: zephyrproject-rtos + url-base: https://github.com/zephyrproject-rtos + + projects: + - name: zephyr + remote: zephyrproject-rtos + revision: main + import: + name-allowlist: + - cmsis # required by the ARM port