Add GitHub Action for Unit Test

This commit is contained in:
Markus Opolka 2020-02-16 11:00:33 +01:00
parent 174686a980
commit e95daad8ff
2 changed files with 17 additions and 11 deletions

17
.github/workflows/unittest.yml vendored Normal file
View 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

View File

@ -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