Test with Python 3.11
This commit is contained in:
parent
bd2a824c68
commit
c04e050735
4 changed files with 12 additions and 9 deletions
6
.github/workflows/test.yml
vendored
6
.github/workflows/test.yml
vendored
|
@ -9,7 +9,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
python-version: ["3.7", "3.8", "3.9", "3.10"]
|
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
@ -25,11 +25,11 @@ jobs:
|
||||||
|
|
||||||
- name: Test with tox
|
- name: Test with tox
|
||||||
run: tox
|
run: tox
|
||||||
if: ${{ matrix.python-version != '3.10' }}
|
if: ${{ matrix.python-version != '3.11' }}
|
||||||
|
|
||||||
- name: Test with tox (and upload coverage)
|
- name: Test with tox (and upload coverage)
|
||||||
uses: paambaati/codeclimate-action@v4.0.0
|
uses: paambaati/codeclimate-action@v4.0.0
|
||||||
if: ${{ matrix.python-version == '3.10' }}
|
if: ${{ matrix.python-version == '3.11' }}
|
||||||
env:
|
env:
|
||||||
CC_TEST_REPORTER_ID: 2a411f596959fc32f5d73f3ba7cef8cc4d5733299d742dbfc97fd6c190b9010c
|
CC_TEST_REPORTER_ID: 2a411f596959fc32f5d73f3ba7cef8cc4d5733299d742dbfc97fd6c190b9010c
|
||||||
with:
|
with:
|
||||||
|
|
9
Jenkinsfile
vendored
9
Jenkinsfile
vendored
|
@ -1,5 +1,6 @@
|
||||||
def pys = [
|
def pys = [
|
||||||
[name: 'Python 3.10', docker: '3.10-bullseye', tox:'py310,flake8', main: true],
|
[name: 'Python 3.11', docker: '3.11-bullseye', tox:'py311,flake8', main: true],
|
||||||
|
[name: 'Python 3.10', docker: '3.10-bullseye', tox:'py310', main: false],
|
||||||
[name: 'Python 3.9', docker: '3.9-bullseye', tox:'py39', main: false],
|
[name: 'Python 3.9', docker: '3.9-bullseye', tox:'py39', main: false],
|
||||||
[name: 'Python 3.8', docker: '3.8-bullseye', tox:'py38', main: false],
|
[name: 'Python 3.8', docker: '3.8-bullseye', tox:'py38', main: false],
|
||||||
[name: 'Python 3.7', docker: '3.7-bullseye', tox:'py37', main: false],
|
[name: 'Python 3.7', docker: '3.7-bullseye', tox:'py37', main: false],
|
||||||
|
@ -75,7 +76,7 @@ pys.each { py ->
|
||||||
parallel(tasks)
|
parallel(tasks)
|
||||||
parallel modern: {
|
parallel modern: {
|
||||||
stage('Modern Windows binary') {
|
stage('Modern Windows binary') {
|
||||||
windowsBuild('3.10', 'dosage.exe')
|
windowsBuild('3.11', 'dosage.exe')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
legacy: {
|
legacy: {
|
||||||
|
@ -111,9 +112,9 @@ def windowsBuildCommands(pyver, exename) {
|
||||||
tar xvf dist/dosage-*.tar.gz
|
tar xvf dist/dosage-*.tar.gz
|
||||||
cd dosage-*
|
cd dosage-*
|
||||||
xvfb-run sh -c "
|
xvfb-run sh -c "
|
||||||
wine py -m pip install -e .[css] &&
|
wine python -m pip install -e .[css] &&
|
||||||
cd scripts &&
|
cd scripts &&
|
||||||
wine py -m PyInstaller -y dosage.spec;
|
wine python -m PyInstaller -y dosage.spec;
|
||||||
wineserver -w" 2>&1 | tee log.txt
|
wineserver -w" 2>&1 | tee log.txt
|
||||||
'''
|
'''
|
||||||
sh "mv */scripts/dist/*.exe $exename"
|
sh "mv */scripts/dist/*.exe $exename"
|
||||||
|
|
|
@ -21,6 +21,7 @@ classifiers = [
|
||||||
"Programming Language :: Python :: 3.8",
|
"Programming Language :: Python :: 3.8",
|
||||||
"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",
|
||||||
"Topic :: Internet :: WWW/HTTP",
|
"Topic :: Internet :: WWW/HTTP",
|
||||||
"Topic :: Multimedia :: Graphics",
|
"Topic :: Multimedia :: Graphics",
|
||||||
]
|
]
|
||||||
|
|
5
tox.ini
5
tox.ini
|
@ -1,5 +1,5 @@
|
||||||
[tox]
|
[tox]
|
||||||
envlist = py37, py38, py39, py310, flake8
|
envlist = py37, py38, py39, py310, py311, flake8
|
||||||
isolated_build = True
|
isolated_build = True
|
||||||
|
|
||||||
[gh-actions]
|
[gh-actions]
|
||||||
|
@ -7,7 +7,8 @@ python =
|
||||||
3.7: py37
|
3.7: py37
|
||||||
3.8: py38
|
3.8: py38
|
||||||
3.9: py39
|
3.9: py39
|
||||||
3.10: py310, flake8
|
3.10: py310
|
||||||
|
3.11: py311, flake8
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
commands =
|
commands =
|
||||||
|
|
Loading…
Reference in a new issue