@@ -6,35 +6,17 @@ permissions:
66 contents : read
77
88env :
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)
1610 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
2911
3012 # Suppress noisy pip warnings
3113 PIP_DISABLE_PIP_VERSION_CHECK : ' true'
3214 PIP_NO_PYTHON_VERSION_WARNING : ' true'
3315 PIP_NO_WARN_SCRIPT_LOCATION : ' true'
3416
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_*
3820
3921
4022jobs :
7153 - name : Run
7254 run : tox
7355
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+
7474 docs :
7575 runs-on : ubuntu-latest
7676 env :
@@ -100,24 +100,6 @@ jobs:
100100 with :
101101 jobs : ${{ toJSON(needs) }}
102102
103- diffcov :
104- runs-on : ubuntu-latest
105- steps :
106- - uses : actions/checkout@v2
107- with :
108- fetch-depth : 0
109- - name : Setup Python
110- uses : actions/setup-python@v2
111- with :
112- python-version : 3.9
113- - name : Install tox
114- run : |
115- python -m pip install tox
116- - name : Evaluate coverage
117- run : tox
118- env :
119- TOXENV : diffcov
120-
121103 release :
122104 permissions :
123105 contents : write
0 commit comments