Update GitHub Workflow

This commit is contained in:
Markus Opolka 2022-09-08 10:04:20 +02:00
parent 0572c2f494
commit ffd96dd59f
2 changed files with 9 additions and 8 deletions

View File

@ -7,21 +7,20 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
matrix: matrix:
python-version: [3.6, 3.7, 3.8] python-version: [3.8, 3,9]
name: GitHub Action name: GitHub Action
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Install dependencies
run: |
python -m pip install -r requirements-dev.txt
- name: Lint - name: Lint
run: | run: |
pip3 install --upgrade pip wheel setuptools make lint
pip3 install pylint
python3 -m pylint check_http_json.py
- name: Unit Test - name: Unit Test
run: | run: |
python3 -m unittest discover make test
- name: Coverage - name: Coverage
run: | run: |
pip3 install coverage make coverage
python3 -m coverage run -m unittest discover
python3 -m coverage report -m --include check_http_json.py

2
requirements-dev.txt Normal file
View File

@ -0,0 +1,2 @@
coverage==6.4.4
pylint==2.15.2