diff --git a/.github/workflows/ceedling.yaml b/.github/workflows/ceedling.yaml index 78291da..310274a 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/port_test/ + - 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