From 564a93a872397543412fcb57630399d7302de66c Mon Sep 17 00:00:00 2001 From: Alvaro Lopez Garcia Date: Wed, 27 Sep 2023 11:54:47 +0200 Subject: [PATCH] Update Python version in tox envs and GH actions --- .github/workflows/ci.yml | 2 +- .github/workflows/python-publish.yml | 2 +- tox.ini | 18 +++++++++++------- 3 files changed, 13 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7768c2a4..d8629ab9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 89573a2b..fe981c9c 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -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 diff --git a/tox.ini b/tox.ini index 685ef74a..e6b40fe8 100644 --- a/tox.ini +++ b/tox.ini @@ -1,7 +1,7 @@ [tox] min_version = 4.3.3 envlist = - py3{7, 8, 9, 10} + py3{8, 9, 10} flake8 black bandit @@ -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 @@ -50,9 +51,6 @@ commands = find . -type f -name "*.pyc" -delete pytest {posargs} -[testenv:py37] -basepython = python3.7 - [testenv:py38] basepython = python3.8 @@ -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