Skip to content

v2.0.5: support python 3.9 #177

v2.0.5: support python 3.9

v2.0.5: support python 3.9 #177

Workflow file for this run

name: test
on: [push, pull_request]
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install paho-mqtt requests coverage coveralls
- name: Print versions
run: |
python -c 'import paho.mqtt; print("Paho MQTT " + paho.mqtt.__version__)'
python -c 'import requests; print("Requests " + requests.__version__)'
- name: Run tests
run: python -m coverage run -m unittest discover
- name: Print coverage report
run: python -m coverage report
- name: Upload coverage
run: coveralls
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}