Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .github/workflows/unittest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,19 @@ on:
jobs:
gitHubActionForPytest:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.13", "3.14"]
name: GitHub Action
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Display Python version
run: python -c "import sys; print(sys.version)"
- name: Install dependencies
run: |
python -m pip install -r requirements.txt -r requirements-dev.txt
Expand Down
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
.PHONY: lint test

lint:
python -m pylint check_hwgroup
python3 -m pylint check_hwgroup

test:
python -m unittest -v test_check_hwgroup.py
python3 -m unittest -v test_check_hwgroup.py
coverage:
python -m coverage run -m unittest -b test_check_hwgroup.py
python -m coverage report -m --include check_hwgroup.py
python3 -m coverage run -m unittest -b test_check_hwgroup.py
python3 -m coverage report -m --include check_hwgroup.py
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ The plugin requires at least Python 3.

## Required Python Libraries

* pysnmplib
* pysnmp
* nagiosplugin

# Usage
Expand Down
Loading
Loading