Skip to content

v0.1.5

v0.1.5 #16

Workflow file for this run

name: test
on:
push:
branches: [main]
paths:
- tenta/**
- tests/**
- docs/**
- pdm.lock
- pyproject.toml
- .github/workflows/test.yml
pull_request:
paths:
- tenta/**
- tests/**
- docs/**
- pdm.lock
- pyproject.toml
- .github/workflows/test.yml
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python_version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
defaults:
run:
shell: bash
steps:
# check-out repo and install python
- name: Check out repository
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python_version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python_version }}
cache: pip
- name: Install dependencies
run: pip install ".[dev]"
# Install mosquitto dependencies
- name: Install mosquitto dependencies
run: |
sudo apt-add-repository ppa:mosquitto-dev/mosquitto-ppa -y
sudo apt-get update -y
sudo apt-get install -y mosquitto-clients
# run test suite
- name: Run pytests
run: |
pytest --verbose --cov=tenta --cov-report=term-missing tests/