Merge pull request #7797 from pylbrecht/build-on-ci
Run package building on CI with warnings turned into errors
This commit is contained in:
commit
3b1c3856a9
|
|
@ -33,6 +33,7 @@ jobs:
|
|||
args: "-f gcc" # For problem matchers
|
||||
- testenv: yamllint
|
||||
- testenv: actionlint
|
||||
- testenv: package
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
|
|
|
|||
9
tox.ini
9
tox.ini
|
|
@ -280,3 +280,12 @@ deps =
|
|||
commands =
|
||||
!qt5: {envpython} {toxinidir}/scripts/dev/build_release.py {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
|
||||
|
|
|
|||
Loading…
Reference in New Issue