8000 Merge pull request #4553 from Liam-DeVoe/tox-ci · HypothesisWorks/hypothesis@3b95a47 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3b95a47

Browse files
authored
Merge pull request #4553 from Liam-DeVoe/tox-ci
Respect `__TOX_ENVIRONMENT_VARIABLE_ORIGINAL_CI` under tox
2 parents 549d8cd + f606e54 commit 3b95a47

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

hypothesis-python/RELEASE.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
RELEASE_TYPE: patch
2+
3+
The automatic switch to the CI :class:`settings profile <hypothesis.settings>` now works under :pypi:`tox` (for ``tox >= 4.30.0``).

hypothesis-python/src/hypothesis/_settings.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,9 @@ def __repr__(self) -> str:
294294
# see https://adamj.eu/tech/2020/03/09/detect-if-your-tests-are-running-on-ci
295295
# initially from https://github.com/tox-dev/tox/blob/e911788a/src/tox/util/ci.py
296296
_CI_VARS = {
297-
"CI": None, # GitHub Actions, Travis CI, and AppVeyor
297+
"CI": None, # various, including GitHub Actions, Travis CI, and AppVeyor
298+
# see https://github.com/tox-dev/tox/issues/3442
299+
"__TOX_ENVIRONMENT_VARIABLE_ORIGINAL_CI": None,
298300
"TF_BUILD": "true", # Azure Pipelines
299301
"bamboo.buildKey": None, # Bamboo
300302
"BUILDKITE": "true", # Buildkite

0 commit comments

Comments
 (0)
0