From 9aa0f8b3456ef0db394e2d55956de0d78ef2c990 Mon Sep 17 00:00:00 2001 From: Peter Buchegger Date: Sun, 19 Feb 2023 11:21:17 +0100 Subject: [PATCH] lets try this --- .github/workflows/build_check.yml | 33 +++++++++++++++++++++++-------- 1 file changed, 25 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build_check.yml b/.github/workflows/build_check.yml index 4c9e291..2e6ee37 100644 --- a/.github/workflows/build_check.yml +++ b/.github/workflows/build_check.yml @@ -84,14 +84,31 @@ jobs: env: PLATFORMIO_AUTH_TOKEN: ${{ secrets.PLATFORMIO_AUTH_TOKEN }} steps: - - name: Try and fix cryptography - run: sudo apt install -y libffi-dev python3-dev libssl-dev + - name: Cache pip + uses: actions/cache@v3 + with: + path: ~/.cache/pip + key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} + restore-keys: | + ${{ runner.os }}-pip- + - name: Cache PlatformIO + uses: actions/cache@v3 + with: + path: ~/.platformio + key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }} + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: '3.10' + - name: Install PlatformIO + shell: bash + run: | + python -m pip install --upgrade pip + pip install --upgrade platformio + - name: Checkout code uses: actions/checkout@v3 + - name: list devices + run: pio remote device list - name: PlatformIO Test - uses: karniv00l/platformio-remote-test-action@v1 - with: - force-remote: true - verbose: true - upload-port: "/dev/ttyUSB1" - test-port: "/dev/ttyUSB1" + run: pio remote test -v -r --upload-port /dev/ttyUSB4 --test-port /dev/ttyUSB4