fix TPLinkXDRClient supports #103
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: Python Package | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
ci: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ['3.10', '3.11', '3.12', '3.13'] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
name: Setup Python ${{ matrix.python-version }} | |
with: | |
python-version: ${{ matrix.python-version }} | |
allow-prereleases: true | |
- name: Install pip | |
run: | | |
python -m pip install --upgrade pip | |
- name: Install package | |
run: | | |
pip install tplinkrouterc6u | |
- name: Install dependencies | |
run: | | |
pip install -r requirements.txt | |
- name: Test with unittest | |
run: | | |
python -m unittest discover -s ./test | |
- name: Run flake8 | |
uses: py-actions/flake8@v2 |