nagios-http-json/.github/workflows/unittest.yml

28 lines
688 B
YAML
Raw Normal View History

2020-02-16 11:00:33 +01:00
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
2020-03-18 08:09:35 +01:00
- name: Lint
run: |
pip3 install --upgrade pip wheel setuptools
pip3 install pylint
python3 -m pylint check_http_json.py
2020-02-16 11:00:33 +01:00
- name: Unit Test
run: |
2020-03-03 10:04:03 +01:00
python3 -m unittest discover
2020-03-03 09:48:44 +01:00
- name: Coverage
run: |
2020-03-03 10:04:03 +01:00
pip3 install coverage
python3 -m coverage run -m unittest discover
python3 -m coverage report -m --include check_http_json.py