misc: Add client workflow. #9
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 3' | |
uses: actions/setup-python@v4 | |
with: | |
cache: 'pip' | |
python-version: "3.10" | |
- name: '🛠 Install dependencies' | |
run: | | |
#pip install -r .github/workflows/requirements.txt | |
python -m pip install build==0.10.0 | |
python3 -m build --version | |
#sudo apt-get install softhsm2 gnutls-bin python3-m2crypto | |
- name: '📦 Build package' | |
run: python3 -m build | |
- name: '🛠 Install package' | |
run: | | |
python3 -m build | |
pip install dist/arduino_iot_cloud-*.whl | |
- name: '☁️ Connect to IoT cloud' | |
env: | |
DEVICE_ID: ${{ secrets.DEVICE_ID }} | |
SECRET_KEY: ${{ secrets.SECRET_KEY }} | |
run: | | |
python tests/ci.py --basic-auth |