Merge pull request #7797 from pylbrecht/build-on-ci

Run package building on CI with warnings turned into errors
This commit is contained in:
Florian Bruhin 2023-08-10 12:14:23 +02:00 committed by GitHub
commit 3b1c3856a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 0 deletions

View File

@ -33,6 +33,7 @@ jobs:
args: "-f gcc" # For problem matchers args: "-f gcc" # For problem matchers
- testenv: yamllint - testenv: yamllint
- testenv: actionlint - testenv: actionlint
- testenv: package
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
with: with:

View File

@ -280,3 +280,12 @@ deps =
commands = commands =
!qt5: {envpython} {toxinidir}/scripts/dev/build_release.py {posargs} !qt5: {envpython} {toxinidir}/scripts/dev/build_release.py {posargs}
qt5: {envpython} {toxinidir}/scripts/dev/build_release.py --qt5 {posargs} qt5: {envpython} {toxinidir}/scripts/dev/build_release.py --qt5 {posargs}
[testenv:package]
basepython = {env:PYTHON:python3}
setenv =
PYTHONWARNINGS=error,default:pkg_resources is deprecated as an API.:DeprecationWarning
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/misc/requirements/requirements-dev.txt
commands = {envpython} -m build