mirror of
https://github.com/drewkerrigan/nagios-http-json.git
synced 2024-12-22 17:13:55 +01:00
Merge pull request #90 from drewkerrigan/chore/update-makefile
Update makefile
This commit is contained in:
commit
6b51e1bb06
2
.github/workflows/unittest.yml
vendored
2
.github/workflows/unittest.yml
vendored
@ -7,7 +7,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
python-version: [3.8, 3,9]
|
||||
python-version: [3.8, 3.11, 3.12]
|
||||
name: GitHub Action
|
||||
steps:
|
||||
- name: Checkout
|
||||
|
10
Makefile
10
Makefile
@ -1,9 +1,11 @@
|
||||
.PHONY: lint test coverage
|
||||
|
||||
PYTHON_PATH?=python3
|
||||
|
||||
lint:
|
||||
python -m pylint check_http_json.py
|
||||
$(PYTHON_PATH) -m pylint check_http_json.py
|
||||
test:
|
||||
python -m unittest discover
|
||||
$(PYTHON_PATH) -m unittest discover
|
||||
coverage:
|
||||
python -m coverage run -m unittest discover
|
||||
python -m coverage report -m --include check_http_json.py
|
||||
$(PYTHON_PATH) -m coverage run -m unittest discover
|
||||
$(PYTHON_PATH) -m coverage report -m --include check_http_json.py
|
||||
|
Loading…
Reference in New Issue
Block a user