From ffd96dd59fc904bd6c720e321593640fdf3deedb Mon Sep 17 00:00:00 2001 From: Markus Opolka Date: Thu, 8 Sep 2022 10:04:20 +0200 Subject: [PATCH] Update GitHub Workflow --- .github/workflows/unittest.yml | 15 +++++++-------- requirements-dev.txt | 2 ++ 2 files changed, 9 insertions(+), 8 deletions(-) create mode 100644 requirements-dev.txt diff --git a/.github/workflows/unittest.yml b/.github/workflows/unittest.yml index 015cf1a..b2f65eb 100644 --- a/.github/workflows/unittest.yml +++ b/.github/workflows/unittest.yml @@ -7,21 +7,20 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [3.6, 3.7, 3.8] + python-version: [3.8, 3,9] name: GitHub Action steps: - name: Checkout uses: actions/checkout@v2 + - name: Install dependencies + run: | + python -m pip install -r requirements-dev.txt - name: Lint run: | - pip3 install --upgrade pip wheel setuptools - pip3 install pylint - python3 -m pylint check_http_json.py + make lint - name: Unit Test run: | - python3 -m unittest discover + make test - name: Coverage run: | - pip3 install coverage - python3 -m coverage run -m unittest discover - python3 -m coverage report -m --include check_http_json.py + make coverage diff --git a/requirements-dev.txt b/requirements-dev.txt new file mode 100644 index 0000000..e84cd4e --- /dev/null +++ b/requirements-dev.txt @@ -0,0 +1,2 @@ +coverage==6.4.4 +pylint==2.15.2