Skip to content

Commit

Permalink
Change: increase minimum supported python version to 3.10
Browse files Browse the repository at this point in the history
  • Loading branch information
NiklasHargarter committed Aug 8, 2024
1 parent 318f02a commit 8986e06
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 29 deletions.
41 changes: 18 additions & 23 deletions .github/workflows/ci-python.yml
Original file line number Diff line number Diff line change
@@ -1,38 +1,34 @@
---
name: Build and test Python package

on:
push:
branches: [ main ]
branches: [main]
pull_request:
branches: [ main ]

branches: [main]
jobs:
linting:
name: Linting
runs-on: 'ubuntu-latest'
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- 3.9
- "3.10"
- "3.11"
matrix:
python-version:
- '3.10'
- '3.11'
steps:
- uses: actions/checkout@v4
- name: Install and check with black, pylint and pontos.version
uses: greenbone/actions/lint-python@v3
with:
packages: troubadix tests
python-version: ${{ matrix.python-version }}

test:
name: Run all tests
runs-on: 'ubuntu-latest'
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- 3.9
- "3.10"
- "3.11"
matrix:
python-version:
- '3.10'
- '3.11'
steps:
- uses: actions/checkout@v4
- name: Install python, poetry and dependencies
Expand All @@ -43,27 +39,26 @@ jobs:
run: |
poetry run python -m unittest -v
env:
NASLINTER_DOCKER_RUN: "true"

NASLINTER_DOCKER_RUN: 'true'
codecov:
name: Upload coverage to codecov.io
needs: test
runs-on: 'ubuntu-latest'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install python, poetry and dependencies
uses: greenbone/actions/poetry@v3
with:
python-version: 3.9
python-version: 3.10
- name: Install codecov-python
run: poetry run python -m pip install codecov
- name: Run unit tests
run: |
poetry run coverage run -m unittest -v
env:
NASLINTER_DOCKER_RUN: "true"
NASLINTER_DOCKER_RUN: 'true'
- name: Create coverage XML report
run: poetry run coverage xml
run: poetry run coverage xml
- name: Upload coverage to codecov.io
uses: codecov/codecov-action@v4
with:
Expand Down
6 changes: 3 additions & 3 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ classifiers = [
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)", # pylint: disable=line-too-long
"Environment :: Console",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Operating System :: OS Independent",
Expand All @@ -24,7 +23,7 @@ classifiers = [
packages = [{ include = "troubadix" }, { include = "tests", format = "sdist" }]

[tool.poetry.dependencies]
python = "^3.9"
python = "^3.10"
pontos = ">=22.7,<25.0"
codespell = "^2.0.0"
python-magic = "^0.4.25"
Expand All @@ -41,7 +40,7 @@ autohooks-plugin-ruff = "^24.1.0"

[tool.black]
line-length = 80
target-version = ['py39', 'py310', 'py311']
target-version = ['py310', 'py311']
exclude = '''
/(
\.git
Expand Down

0 comments on commit 8986e06

Please sign in to comment.