Skip to content

Commit 24464f6

Browse files
committed
Set --color=yes in addopts rather than GitHub Actions workflow
1 parent 8d3ff65 commit 24464f6

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

.github/workflows/ci_doctests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,4 +86,4 @@ jobs:
8686

8787
# Run the doctests
8888
- name: Run doctests
89-
run: make doctest PYTEST_EXTRA="-r P --color=yes"
89+
run: make doctest PYTEST_EXTRA="-r P"

.github/workflows/ci_tests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ jobs:
157157

158158
# Run the regular tests
159159
- name: Run tests
160-
run: make test PYTEST_EXTRA="-r P -n auto --reruns 2 --color=yes"
160+
run: make test PYTEST_EXTRA="-r P -n auto --reruns 2"
161161

162162
# Upload diff images on test failure
163163
- name: Upload diff images if any test fails

.github/workflows/ci_tests_dev.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ jobs:
173173

174174
# Run the tests
175175
- name: Test with pytest
176-
run: make test PYTEST_EXTRA="-r P -n auto --reruns 2 --color=yes"
176+
run: make test PYTEST_EXTRA="-r P -n auto --reruns 2"
177177
env:
178178
GMT_LIBRARY_PATH: ${{ runner.temp }}/gmt-install-dir/lib
179179

.github/workflows/ci_tests_legacy.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,4 +100,4 @@ jobs:
100100

101101
# Run the tests but skip images
102102
- name: Run tests
103-
run: make test_no_images PYTEST_EXTRA="-r P --color=yes"
103+
run: make test_no_images PYTEST_EXTRA="-r P"

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ max-args=10
166166

167167
[tool.pytest.ini_options]
168168
minversion = "6.0"
169-
addopts = "--verbose --durations=0 --durations-min=0.2 --doctest-modules --mpl --mpl-results-path=results"
169+
addopts = "--verbose --color=yes --durations=0 --durations-min=0.2 --doctest-modules --mpl --mpl-results-path=results"
170170
markers = [
171171
"benchmark: mark a test with custom benchmark settings.",
172172
]

0 commit comments

Comments
 (0)