Skip to content

Commit

Permalink
Support all python versions >= 3.8 (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikRehmTT authored Apr 22, 2024
1 parent 7be33a1 commit 90bb239
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 5 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,21 @@ on:

jobs:
test:
env:
PYTHON_VERSION: "3.12"
strategy:
matrix:
py_version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ env.PYTHON_VERSION }}
python-version: ${{ matrix.py_version }}
- name: Install virtual environment
run: pip3 install poetry
- name: Ensure Python version
run: poetry env use ${{ env.PYTHON_VERSION }}
run: poetry env use ${{ matrix.py_version }}
- name: Install dependencies
run: poetry install --without workflow --no-root
- name: Execute Tests and create test coverage report
Expand Down
27 changes: 27 additions & 0 deletions config/license/allowlist.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,24 @@
"actualLicense": "MIT",
"violationAllowance": ""
},
{
"moduleLicense": "Apache-2.0",
"moduleVersion": "6.4.0",
"moduleName": "importlib-resources",
"licenseUrl": "https://github.com/python/importlib_resources/blob/v6.4.0/LICENSE",
"moduleCopyright": "",
"actualLicense": "Apache-2.0",
"violationAllowance": ""
},
{
"moduleLicense": "MIT",
"moduleVersion": "1.3.10",
"moduleName": "pkgutil-resolve-name",
"licenseUrl": "https://github.com/graingert/pkgutil-resolve-name/blob/default/LICENSE",
"moduleCopyright": "Copyright (c) 2020 Thomas Grainger",
"actualLicense": "MIT",
"violationAllowance": ""
},
{
"moduleLicense": "MIT",
"moduleVersion": "4.16.0",
Expand All @@ -26,6 +44,15 @@
"moduleCopyright": "Copyright (c) 2023 Tobias Gustafsson",
"actualLicense": "MIT",
"violationAllowance": ""
},
{
"moduleLicense": "MIT",
"moduleVersion": "3.18.1",
"moduleName": "zipp",
"licenseUrl": "https://github.com/jaraco/zipp/blob/v3.18.1/LICENSE",
"moduleCopyright": "",
"actualLicense": "MIT",
"violationAllowance": ""
}
]
}
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ authors = [ "tracetronic GmbH",]
readme = "README.md"

[tool.poetry.dependencies]
python = "~3.12"
python = ">=3.8,<4.0"
jsonschema = "==4.16.0"

[tool.poetry.group.workflow.dependencies]
Expand Down

0 comments on commit 90bb239

Please sign in to comment.