Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
github/workflows: Update client test workflow.
- Remove key from tests that don't use it.
- Add a test that uses the embedded CADATA.
- Run workflow on schedule.

Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
  • Loading branch information
iabdalkader committed Mar 4, 2025
commit 659b673b1ff38c0d7ac1c512ac1016a3dec1443b
16 changes: 11 additions & 5 deletions .github/workflows/client-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: '🧪 Test Cloud Client'

on:
push:
branches:
branches:
- 'main'
paths:
- '**.py'
Expand All @@ -16,14 +16,17 @@ on:
- edited
- reopened
- synchronize
branches:
branches:
- 'main'
paths:
- '**.py'
- '.github/workflows/*.yml'
- '.github/workflows/*.json'
- '!**/README.md'

schedule:
- cron: '0 12 * * *' # Runs every day at 12 PM UTC

jobs:
build:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -89,14 +92,18 @@ jobs:
- name: '☁️ Connect to IoT cloud (CPython / Key-Cert Auth / Async)'
env:
DEVICE_ID: ${{ secrets.DEVICE_ID2 }}
SECRET_KEY: ${{ secrets.SECRET_KEY }}
run: |
python tests/ci.py --file-auth

- name: '☁️ Connect to IoT cloud (CPython / Key-Cert Auth / CADATA / Async)'
env:
DEVICE_ID: ${{ secrets.DEVICE_ID2 }}
run: |
python tests/ci.py --file-auth --ca-data

- name: '☁️ Connect to IoT cloud (CPython / Crypto Auth / Async)'
env:
DEVICE_ID: ${{ secrets.DEVICE_ID2 }}
SECRET_KEY: ${{ secrets.SECRET_KEY }}
run: |
export SOFTHSM2_CONF="${HOME}/softhsm/tokens/softhsm2.conf"
python tests/ci.py --crypto-device
Expand All @@ -122,7 +129,6 @@ jobs:
- name: '☁️ Connect to IoT cloud (MicroPython / Key-Cert Auth / Async)'
env:
DEVICE_ID: ${{ secrets.DEVICE_ID2 }}
SECRET_KEY: ${{ secrets.SECRET_KEY }}
run: |
export PATH="${HOME}/cache/bin:${PATH}"
micropython -c "import sys; print(sys.path)"
Expand Down