From 7761f469e8f3c760df8c9c7ef54828e025f71756 Mon Sep 17 00:00:00 2001 From: Pieter Geelen Date: Fri, 29 Dec 2023 23:01:14 +0100 Subject: [PATCH] Separate out CI --- ...{platformio.yaml => platformio_build.yaml} | 6 +---- .github/workflows/platformio_tests.yaml | 25 +++++++++++++++++++ 2 files changed, 26 insertions(+), 5 deletions(-) rename .github/workflows/{platformio.yaml => platformio_build.yaml} (79%) create mode 100644 .github/workflows/platformio_tests.yaml diff --git a/.github/workflows/platformio.yaml b/.github/workflows/platformio_build.yaml similarity index 79% rename from .github/workflows/platformio.yaml rename to .github/workflows/platformio_build.yaml index 95b86ce..29ddd58 100644 --- a/.github/workflows/platformio.yaml +++ b/.github/workflows/platformio_build.yaml @@ -1,4 +1,4 @@ -name: PlatformIO CI +name: PlatformIO CI - Build for Arduino on: [push] @@ -20,10 +20,6 @@ jobs: - name: Install PlatformIO Core run: pip install --upgrade platformio - - name: Run tests on the native platform - working-directory: ./controller/tea_poor - run: pio test -e native - - name: Build PlatformIO Project for Arduino working-directory: ./controller/tea_poor run: pio run -e uno_r4_wifi diff --git a/.github/workflows/platformio_tests.yaml b/.github/workflows/platformio_tests.yaml new file mode 100644 index 0000000..299db5f --- /dev/null +++ b/.github/workflows/platformio_tests.yaml @@ -0,0 +1,25 @@ +name: PlatformIO CI - Unit Tests + +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - uses: actions/cache@v3 + with: + path: | + ~/.cache/pip + ~/.platformio/.cache + key: ${{ runner.os }}-pio + - uses: actions/setup-python@v4 + with: + python-version: "3.9" + - name: Install PlatformIO Core + run: pip install --upgrade platformio + + - name: Run tests on the native platform + working-directory: ./controller/tea_poor + run: pio test -e native