Skip to content

V1.0.4 - Changed PyPI package and added rate limiting to the proxy server #7

V1.0.4 - Changed PyPI package and added rate limiting to the proxy server

V1.0.4 - Changed PyPI package and added rate limiting to the proxy server #7

Workflow file for this run

name: Tests
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e ".[dev]"
- name: Lint with basic checks
run: |
python -m py_compile bambulab/*.py
python -m py_compile servers/*.py
python -m py_compile cli_tools/*.py
- name: Test import
run: |
python -c "from bambulab import BambuClient, MQTTClient; print('Import successful')"