Skip to content

Commit 9e0eada

Browse files
committed
CI: Show color output on pytest logs in GitHub Actions
GitHub Actions does not show colour outputs for pytest by default (pytest-dev/pytest#7443), but it can be enabled using `--color=yes` flag.
1 parent 97a6f30 commit 9e0eada

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.github/workflows/ci_tests.yaml

+1-1
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"
160+
run: make test PYTEST_EXTRA="-r P -n auto --reruns 2 --color=yes"
161161

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

.github/workflows/ci_tests_dev.yaml

+1-1
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"
176+
run: make test PYTEST_EXTRA="-r P -n auto --reruns 2 --color=yes"
177177
env:
178178
GMT_LIBRARY_PATH: ${{ runner.temp }}/gmt-install-dir/lib
179179

.github/workflows/ci_tests_legacy.yaml

+1-1
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"
103+
run: make test_no_images PYTEST_EXTRA="-r P --color=yes"

0 commit comments

Comments
 (0)