summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2022-12-12 13:42:32 +0100
committerFlorian Bruhin <me@the-compiler.org>2022-12-12 13:42:32 +0100
commit21ac559a6505452609b7c305d7e2c6479cefd22c (patch)
treef960c811cd5e28658338cadd2cf30f2959cc54e5
parentbbdc83f638ed1a8e263a3efac0da8a901c1a1420 (diff)
downloadqutebrowser-21ac559a6505452609b7c305d7e2c6479cefd22c.tar.gz
qutebrowser-21ac559a6505452609b7c305d7e2c6479cefd22c.zip
More adjustments for tox 4 subtleties
-rw-r--r--.github/workflows/ci.yml7
-rw-r--r--tox.ini16
2 files changed, 16 insertions, 7 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 3bebcfbc4..9e1b8fc3c 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -73,7 +73,12 @@ jobs:
python -m pip install -U pip
python -m pip install -U -r misc/requirements/requirements-tox.txt
- name: "Run ${{ matrix.testenv }}"
- run: "dbus-run-session -- tox -e ${{ matrix.testenv}} -- ${{ matrix.args }}"
+ run: |
+ if [[ -z "${{ matrix.args }}" ]]; then
+ dbus-run-session -- tox -e ${{ matrix.testenv }}
+ else
+ dbus-run-session -- tox -e ${{ matrix.testenv }} -- ${{ matrix.args }}
+ fi
tests-docker:
if: "!contains(github.event.head_commit.message, '[ci skip]')"
diff --git a/tox.ini b/tox.ini
index 14ad03caa..7e4bcf5c1 100644
--- a/tox.ini
+++ b/tox.ini
@@ -155,8 +155,9 @@ commands =
[testenv:docs]
basepython = {env:PYTHON:python3}
-whitelist_externals = git
-passenv = CI GITHUB_REF
+passenv =
+ CI
+ GITHUB_REF
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/misc/requirements/requirements-docs.txt
@@ -168,7 +169,10 @@ commands =
[testenv:pyinstaller-{64,32}]
basepython = {env:PYTHON:python3}
-passenv = APPDATA HOME PYINSTALLER_DEBUG
+passenv =
+ APPDATA
+ HOME
+ PYINSTALLER_DEBUG
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/misc/requirements/requirements-pyinstaller.txt
@@ -180,14 +184,14 @@ commands =
basepython = python3
deps =
passenv = TERM
-whitelist_externals = eslint
+allowlist_externals = eslint
changedir = {toxinidir}/qutebrowser/javascript
commands = eslint --report-unused-disable-directives .
[testenv:shellcheck]
basepython = python3
deps =
-whitelist_externals = bash
+allowlist_externals = bash
commands = bash scripts/dev/run_shellcheck.sh {posargs}
[testenv:mypy]
@@ -212,7 +216,7 @@ commands =
[testenv:actionlint]
basepython = python3
deps =
-whitelist_externals = actionlint
+allowlist_externals = actionlint
commands =
actionlint