diff --git a/.appveyor.yml b/.appveyor.yml index 10109c9f80f7..d31d037a8491 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -51,6 +51,11 @@ init: - micromamba config set always_yes true - micromamba config prepend channels conda-forge - micromamba info + - ps: | + if ($env:APPVEYOR_REPO_COMMIT_MESSAGE -like "*[verbose]*") { + $env:PYTEST_ARGS += " -vv" + echo "Verbose logging enabled via commit message." + } install: - set EXTRA_PACKAGES=pywin32 codecov diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 8be8e5d25a92..639c3b961364 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -316,6 +316,10 @@ jobs: if: matrix.delete-font-cache - name: Run pytest + env: + PYTEST_ADDOPTS: >- + ${{ (contains(github.event.pull_request.labels.*.name, 'ci:verbose') || + contains(github.event.head_commit.message, '[verbose]')) && '-vv' || '' }} run: | if [[ "${{ matrix.python-version }}" == '3.14t' ]]; then export PYTHON_GIL=0 diff --git a/azure-pipelines.yml b/azure-pipelines.yml index c8df751f2419..62a24e6ca2c0 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -91,6 +91,15 @@ stages: - script: pip list displayName: 'print pip' + - bash: | + echo "##vso[task.setvariable variable=PYTEST_ADDOPTS]-vv" + displayName: 'Enable verbose logging' + condition: | + or( + contains(variables['Build.SourceVersionMessage'], '[verbose]'), + contains(variables['System.PullRequest.Labels'], 'ci:verbose') + ) + - bash: | set -e SESSION_ID=$(python -c "import uuid; print(uuid.uuid4(), end='')")