Skip to content

Commit

Permalink
Update Python version in tox envs and GH actions
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarolopez committed Sep 27, 2023
1 parent 1f3d2f8 commit 564a93a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10']
python-version: ['3.8', '3.9', '3.10', '3.11']

steps:
- uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10"]
python-version: ["3.8", "3.9", "3.10", "3.11"]

steps:
- uses: actions/checkout@v3
Expand Down
18 changes: 11 additions & 7 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[tox]
min_version = 4.3.3
envlist =
py3{7, 8, 9, 10}
py3{8, 9, 10}
flake8
black
bandit
Expand All @@ -12,13 +12,14 @@ skipsdist = True

[gh-actions]
python =
3.7: py37
3.8: py38
3.9: py39
3.10: py310, flake8, black, bandit, pip-missing-reqs, pypi
3.10: py310
3.11: py311, flake8, black, bandit, pip-missing-reqs, pypi
3.12: py312

[base]
python = python3.10
python = python3.11
skip_install = true
package = deepaas

Expand Down Expand Up @@ -50,9 +51,6 @@ commands =
find . -type f -name "*.pyc" -delete
pytest {posargs}

[testenv:py37]
basepython = python3.7

[testenv:py38]
basepython = python3.8

Expand All @@ -62,6 +60,12 @@ basepython = python3.9
[testenv:py310]
basepython = python3.10

[testenv:py311]
basepython = python3.11

[testenv:py312]
basepython = python3.12

[flake8]
# Black default line length is 88
max-line-length = 88
Expand Down

0 comments on commit 564a93a

Please sign in to comment.