Skip to content

misc: Add client workflow. #19

misc: Add client workflow.

misc: Add client workflow. #19

Workflow file for this run

name: '🧪 Test Cloud Client'
on:
pull_request:
types:
- opened
- edited
- reopened
- synchronize
branches:
- 'main'
paths:
- '*.py'
- '.github/workflows/*.yml'
- '.github/workflows/*.json'
- '!**/README.md'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: '⏳ Checkout repository'
uses: actions/checkout@v3
- name: '🐍 Set up Python'
uses: actions/setup-python@v4
with:
cache: 'pip'
python-version: "3.10"
- name: '🛠 Install dependencies'
run: |
python -m pip install --upgrade pip
python -m pip install build==0.10.0
sudo apt-get install softhsm2 gnutls-bin
- name: '📦 Build package'
run: python3 -m build
- name: '🛠 Install package'
run: |
python3 -m build
pip install dist/arduino_iot_cloud-*.whl
- name: '🔑 Configure soft crypto device'
env:
KEY_PEM: ${{ secrets.KEY_PEM }}
CERT_PEM: ${{ secrets.CERT_PEM }}
CA_PEM: ${{ secrets.CA_PEM }}
run: |
source tests/ci.sh && ci_configure_softhsm
- name: '☁️ Connect to IoT cloud (basic auth)'
env:
DEVICE_ID: ${{ secrets.DEVICE_ID }}
SECRET_KEY: ${{ secrets.SECRET_KEY }}
run: |
python tests/ci.py --basic-auth

Check failure on line 59 in .github/workflows/client-test.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/client-test.yml

Invalid workflow file

You have an error in your yaml syntax on line 59
- name: '☁️ Connect to IoT cloud (advanced auth files)'
DEVICE_ID: ${{ secrets.DEVICE_ID }}
SECRET_KEY: ${{ secrets.SECRET_KEY }}
run: |
python tests/ci.py --crypto-files
- name: '☁️ Connect to IoT cloud (advanced auth crypto device)'
DEVICE_ID: ${{ secrets.DEVICE_ID }}
SECRET_KEY: ${{ secrets.SECRET_KEY }}
run: |
python tests/ci.py --crypto-device