mirror of
https://github.com/drewkerrigan/nagios-http-json.git
synced 2024-12-22 09:03:57 +01:00
Add GitHub Action for Unit Test
This commit is contained in:
parent
174686a980
commit
e95daad8ff
17
.github/workflows/unittest.yml
vendored
Normal file
17
.github/workflows/unittest.yml
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
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: Unit Test
|
||||
run: |
|
||||
python -m unittest discover
|
11
.travis.yml
11
.travis.yml
@ -1,11 +0,0 @@
|
||||
language: python
|
||||
python:
|
||||
- "3.5"
|
||||
- "3.6"
|
||||
- "3.7"
|
||||
install:
|
||||
- pip install coverage
|
||||
script:
|
||||
- python -m unittest discover
|
||||
- coverage run -m unittest discover
|
||||
- coverage report -m --include check_http_json.py
|
Loading…
Reference in New Issue
Block a user