@@ -6,35 +6,17 @@ permissions:
6
6
contents : read
7
7
8
8
env :
9
- # Environment variables to support color support (jaraco/skeleton#66):
10
- # Request colored output from CLI tools supporting it. Different tools
11
- # interpret the value differently. For some, just being set is sufficient.
12
- # For others, it must be a non-zero integer. For yet others, being set
13
- # to a non-empty value is sufficient. For tox, it must be one of
14
- # <blank>, 0, 1, false, no, off, on, true, yes. The only enabling value
15
- # in common is "1".
9
+ # Environment variable to support color support (jaraco/skeleton#66)
16
10
FORCE_COLOR : 1
17
- # MyPy's color enforcement (must be a non-zero number)
18
- MYPY_FORCE_COLOR : -42
19
- # Recognized by the `py` package, dependency of `pytest` (must be "1")
20
- PY_COLORS : 1
21
- # Make tox-wrapped tools see color requests
22
- TOX_TESTENV_PASSENV : >-
23
- FORCE_COLOR
24
- MYPY_FORCE_COLOR
25
- NO_COLOR
26
- PY_COLORS
27
- PYTEST_THEME
28
- PYTEST_THEME_MODE
29
11
30
12
# Suppress noisy pip warnings
31
13
PIP_DISABLE_PIP_VERSION_CHECK : ' true'
32
14
PIP_NO_PYTHON_VERSION_WARNING : ' true'
33
15
PIP_NO_WARN_SCRIPT_LOCATION : ' true'
34
16
35
- # Disable the spinner, noise in GHA; TODO(webknjaz): Fix this upstream
36
- # Must be "1".
37
- TOX_PARALLEL_NO_SPINNER : 1
17
+ # Ensure tests can sense settings about the environment
18
+ TOX_OVERRIDE : >-
19
+ testenv.pass_env+=GITHUB_*,FORCE_COLOR
38
20
39
21
40
22
jobs :
71
53
- name : Run
72
54
run : tox
73
55
56
+ diffcov :
57
+ runs-on : ubuntu-latest
58
+ steps :
59
+ - uses : actions/checkout@v3
60
+ with :
61
+ fetch-depth : 0
62
+ - name : Setup Python
63
+ uses : actions/setup-python@v4
64
+ with :
65
+ python-version : 3.x
66
+ - name : Install tox
67
+ run : |
68
+ python -m pip install tox
69
+ - name : Evaluate coverage
70
+ run : tox
71
+ env :
72
+ TOXENV : diffcov
73
+
74
74
docs :
75
75
runs-on : ubuntu-latest
76
76
env :
0 commit comments