mirror of
https://github.com/drewkerrigan/nagios-http-json.git
synced 2024-11-22 10:23:50 +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
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
python-version: [3.8, 3,9]
|
python-version: [3.8, 3.11, 3.12]
|
||||||
name: GitHub Action
|
name: GitHub Action
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
|
10
Makefile
10
Makefile
@ -1,9 +1,11 @@
|
|||||||
.PHONY: lint test coverage
|
.PHONY: lint test coverage
|
||||||
|
|
||||||
|
PYTHON_PATH?=python3
|
||||||
|
|
||||||
lint:
|
lint:
|
||||||
python -m pylint check_http_json.py
|
$(PYTHON_PATH) -m pylint check_http_json.py
|
||||||
test:
|
test:
|
||||||
python -m unittest discover
|
$(PYTHON_PATH) -m unittest discover
|
||||||
coverage:
|
coverage:
|
||||||
python -m coverage run -m unittest discover
|
$(PYTHON_PATH) -m coverage run -m unittest discover
|
||||||
python -m coverage report -m --include check_http_json.py
|
$(PYTHON_PATH) -m coverage report -m --include check_http_json.py
|
||||||
|
Loading…
Reference in New Issue
Block a user