Skip to content

Commit f40d295

Browse files
committed
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 <[email protected]>
1 parent b358546 commit f40d295

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

.github/workflows/client-test.yml

+11-5
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: '🧪 Test Cloud Client'
22

33
on:
44
push:
5-
branches:
5+
branches:
66
- 'main'
77
paths:
88
- '**.py'
@@ -16,14 +16,17 @@ on:
1616
- edited
1717
- reopened
1818
- synchronize
19-
branches:
19+
branches:
2020
- 'main'
2121
paths:
2222
- '**.py'
2323
- '.github/workflows/*.yml'
2424
- '.github/workflows/*.json'
2525
- '!**/README.md'
2626

27+
schedule:
28+
- cron: '0 12 * * *' # Runs every day at 12 PM UTC
29+
2730
jobs:
2831
build:
2932
runs-on: ubuntu-latest
@@ -89,14 +92,18 @@ jobs:
8992
- name: '☁️ Connect to IoT cloud (CPython / Key-Cert Auth / Async)'
9093
env:
9194
DEVICE_ID: ${{ secrets.DEVICE_ID2 }}
92-
SECRET_KEY: ${{ secrets.SECRET_KEY }}
9395
run: |
9496
python tests/ci.py --file-auth
9597
98+
- name: '☁️ Connect to IoT cloud (CPython / Key-Cert-CADATA Auth / Async)'
99+
env:
100+
DEVICE_ID: ${{ secrets.DEVICE_ID2 }}
101+
run: |
102+
python tests/ci.py --file-auth --ca-data
103+
96104
- name: '☁️ Connect to IoT cloud (CPython / Crypto Auth / Async)'
97105
env:
98106
DEVICE_ID: ${{ secrets.DEVICE_ID2 }}
99-
SECRET_KEY: ${{ secrets.SECRET_KEY }}
100107
run: |
101108
export SOFTHSM2_CONF="${HOME}/softhsm/tokens/softhsm2.conf"
102109
python tests/ci.py --crypto-device
@@ -122,7 +129,6 @@ jobs:
122129
- name: '☁️ Connect to IoT cloud (MicroPython / Key-Cert Auth / Async)'
123130
env:
124131
DEVICE_ID: ${{ secrets.DEVICE_ID2 }}
125-
SECRET_KEY: ${{ secrets.SECRET_KEY }}
126132
run: |
127133
export PATH="${HOME}/cache/bin:${PATH}"
128134
micropython -c "import sys; print(sys.path)"

0 commit comments

Comments
 (0)