mirror of
https://github.com/drewkerrigan/nagios-http-json.git
synced 2024-11-25 11:53:55 +01:00
28 lines
688 B
YAML
28 lines
688 B
YAML
name: CI
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
gitHubActionForPytest:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
python-version: [3.6, 3.7, 3.8]
|
|
name: GitHub Action
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
- name: Lint
|
|
run: |
|
|
pip3 install --upgrade pip wheel setuptools
|
|
pip3 install pylint
|
|
python3 -m pylint check_http_json.py
|
|
- name: Unit Test
|
|
run: |
|
|
python3 -m unittest discover
|
|
- name: Coverage
|
|
run: |
|
|
pip3 install coverage
|
|
python3 -m coverage run -m unittest discover
|
|
python3 -m coverage report -m --include check_http_json.py
|