Fix mypy issues, update version number #17
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 | |
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/ |