Build with Python 3.12
This commit is contained in:
parent
9163317aba
commit
c25c960132
6 changed files with 13 additions and 10 deletions
4
.github/workflows/ci.yaml
vendored
4
.github/workflows/ci.yaml
vendored
|
@ -6,14 +6,14 @@ on:
|
||||||
- pull_request
|
- pull_request
|
||||||
|
|
||||||
env:
|
env:
|
||||||
DEFAULT_PYTHON: '3.11'
|
DEFAULT_PYTHON: '3.12'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
tests:
|
tests:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
|
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
2
.github/workflows/pages.yml
vendored
2
.github/workflows/pages.yml
vendored
|
@ -20,7 +20,7 @@ jobs:
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: '3.11'
|
python-version: '3.12'
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
|
|
3
Jenkinsfile
vendored
3
Jenkinsfile
vendored
|
@ -1,5 +1,6 @@
|
||||||
def pys = [
|
def pys = [
|
||||||
[name: 'Python 3.11', docker: '3.11-bookworm', tox:'py311,flake8', main: true],
|
[name: 'Python 3.12', docker: '3.12-bookworm', tox:'py312,flake8', main: true],
|
||||||
|
[name: 'Python 3.11', docker: '3.11-bookworm', tox:'py311', main: false],
|
||||||
[name: 'Python 3.10', docker: '3.10-bookworm', tox:'py310', main: false],
|
[name: 'Python 3.10', docker: '3.10-bookworm', tox:'py310', main: false],
|
||||||
[name: 'Python 3.9', docker: '3.9-bookworm', tox:'py39', main: false],
|
[name: 'Python 3.9', docker: '3.9-bookworm', tox:'py39', main: false],
|
||||||
[name: 'Python 3.8', docker: '3.8-bookworm', tox:'py38', main: false],
|
[name: 'Python 3.8', docker: '3.8-bookworm', tox:'py38', main: false],
|
||||||
|
|
|
@ -22,6 +22,7 @@ classifiers = [
|
||||||
"Programming Language :: Python :: 3.9",
|
"Programming Language :: Python :: 3.9",
|
||||||
"Programming Language :: Python :: 3.10",
|
"Programming Language :: Python :: 3.10",
|
||||||
"Programming Language :: Python :: 3.11",
|
"Programming Language :: Python :: 3.11",
|
||||||
|
"Programming Language :: Python :: 3.12",
|
||||||
"Topic :: Internet :: WWW/HTTP",
|
"Topic :: Internet :: WWW/HTTP",
|
||||||
"Topic :: Multimedia :: Graphics",
|
"Topic :: Multimedia :: Graphics",
|
||||||
]
|
]
|
||||||
|
|
2
tests/modules/Jenkinsfile
vendored
2
tests/modules/Jenkinsfile
vendored
|
@ -9,7 +9,7 @@ node {
|
||||||
stage ('Run tests') {
|
stage ('Run tests') {
|
||||||
timeout(time: 12, unit: 'HOURS') {
|
timeout(time: 12, unit: 'HOURS') {
|
||||||
withCredentials([string(credentialsId: 'proxymap', variable: 'PROXYMAP')]) {
|
withCredentials([string(credentialsId: 'proxymap', variable: 'PROXYMAP')]) {
|
||||||
sh 'podman run --rm -v $PWD:/work --userns=keep-id docker.io/python:3.11-bookworm /work/tests/modules/testall.sh'
|
sh 'podman run --rm -v $PWD:/work --userns=keep-id docker.io/python:3.12-bookworm /work/tests/modules/testall.sh'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
5
tox.ini
5
tox.ini
|
@ -1,5 +1,5 @@
|
||||||
[tox]
|
[tox]
|
||||||
envlist = py37, py38, py39, py310, py311, flake8
|
envlist = py37, py38, py39, py310, py311, py312, flake8
|
||||||
isolated_build = True
|
isolated_build = True
|
||||||
|
|
||||||
[gh-actions]
|
[gh-actions]
|
||||||
|
@ -8,7 +8,8 @@ python =
|
||||||
3.8: py38
|
3.8: py38
|
||||||
3.9: py39
|
3.9: py39
|
||||||
3.10: py310
|
3.10: py310
|
||||||
3.11: py311, flake8
|
3.11: py311
|
||||||
|
3.12: py312, flake8
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
commands =
|
commands =
|
||||||
|
|
Loading…
Reference in a new issue