From 09a7ec080c770d3f44b0e537577691dbe7a23b96 Mon Sep 17 00:00:00 2001 From: Markus Opolka Date: Thu, 16 May 2024 10:14:28 +0200 Subject: [PATCH 1/2] Update Python versions in GitHub Actions --- .github/workflows/unittest.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/unittest.yml b/.github/workflows/unittest.yml index b2f65eb..152500f 100644 --- a/.github/workflows/unittest.yml +++ b/.github/workflows/unittest.yml @@ -7,7 +7,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [3.8, 3,9] + python-version: [3.8, 3.11, 3.12] name: GitHub Action steps: - name: Checkout From 3f73984f6bee4bcdd11d3772a139542a45fdf6cb Mon Sep 17 00:00:00 2001 From: Markus Opolka Date: Thu, 16 May 2024 10:14:38 +0200 Subject: [PATCH 2/2] Change makefile to use python3 - Introduces a variable to override this if necessary --- Makefile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 4cb4ed6..d5aa2d5 100644 --- a/Makefile +++ b/Makefile @@ -1,9 +1,11 @@ .PHONY: lint test coverage +PYTHON_PATH?=python3 + lint: - python -m pylint check_http_json.py + $(PYTHON_PATH) -m pylint check_http_json.py test: - python -m unittest discover + $(PYTHON_PATH) -m unittest discover coverage: - python -m coverage run -m unittest discover - python -m coverage report -m --include check_http_json.py + $(PYTHON_PATH) -m coverage run -m unittest discover + $(PYTHON_PATH) -m coverage report -m --include check_http_json.py