Skip to content

Commit cd32348

Browse files
authored
chore: improve output of github actions (#2081)
1 parent cae94a8 commit cd32348

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

.github/workflows/tox.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ concurrency:
2222
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
2323
cancel-in-progress: true
2424

25+
env:
26+
FORCE_COLOR: 1 # tox, pytest, ansible-lint
27+
PY_COLORS: 1
28+
TOX_PARALLEL_NO_SPINNER: 1
29+
2530
jobs:
2631
linters:
2732
name: >-
@@ -39,9 +44,6 @@ jobs:
3944
- TOXENV: docs
4045
- TOXENV: eco
4146
- TOXENV: packaging
42-
env:
43-
TOX_PARALLEL_NO_SPINNER: 1
44-
FORCE_COLOR: 1
4547

4648
steps:
4749
- name: Check out src from Git
@@ -74,8 +76,7 @@ jobs:
7476
- name: Log installed dists
7577
run: >-
7678
python -m pip freeze --all
77-
- name: >-
78-
Initialize tox envs
79+
- name: Initialize tox envs
7980
run: >-
8081
python -m
8182
tox
@@ -150,8 +151,6 @@ jobs:
150151
python-version: "3.10"
151152

152153
env:
153-
TOX_PARALLEL_NO_SPINNER: 1
154-
FORCE_COLOR: 1
155154
# vars safe to be passed to wsl:
156155
WSLENV: FORCE_COLOR:PYTEST_REQPASS:TOXENV:TOX_PARALLEL_NO_SPINNER
157156
# Number of expected test passes, safety measure for accidental skip of
@@ -195,8 +194,7 @@ jobs:
195194
- name: Log installed dists
196195
run: >-
197196
python3 -m pip freeze --all
198-
- name: >-
199-
Initialize tox envs
197+
- name: Initialize tox envs
200198
run: >-
201199
python3 -m
202200
tox

0 commit comments

Comments
 (0)