GitHub Actions to publish on pypi

This commit is contained in:
Christian Manivong
2026-05-11 22:00:40 +02:00
parent e9f9e291d5
commit e8245f955c
2 changed files with 82 additions and 0 deletions
+31
View File
@@ -0,0 +1,31 @@
name: Tests
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
test:
name: Test (Python ${{ matrix.python-version }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
steps:
- 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: |
pip install -e ".[dev]"
- name: Run tests
run: pytest tests/ -v --cov=napalm_tplink_jetstream