Merge pull request #248 from webcomics/py311

Test with Python 3.11
This commit is contained in:
Tobias Gruetzmacher 2023-06-02 00:52:32 +02:00 committed by GitHub
commit 483df1ce04
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 12 additions and 9 deletions

View file

@ -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
View file

@ -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"

View file

@ -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",
] ]

View file

@ -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 =