Skip to content

Commit 3aafbf3

Browse files
committed
CI tests: Set PYTHONIOENCODING=utf-8 on Windows
This is to work-around a tox encoding bug. Ref: tox-dev/tox#1550
1 parent e09e3ea commit 3aafbf3

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,13 @@ jobs:
111111
if: startsWith(runner.os, 'windows') && matrix.python == '3.9'
112112
run: choco install --no-progress --timeout 600 imagemagick.tool ffmpeg
113113
continue-on-error: true
114+
- name: Workaround for UnicodeDecodeError from tox on Windows
115+
# Refs:
116+
# https://github.com/lektor/lektor/pull/933#issuecomment-923107580
117+
# https://github.com/tox-dev/tox/issues/1550
118+
if: startsWith(runner.os, 'windows')
119+
shell: bash
120+
run: echo "PYTHONIOENCODING=utf-8" >> $GITHUB_ENV
114121
- name: Install python dependencies
115122
run: python -m pip install codecov tox
116123
- name: Run python tests

0 commit comments

Comments
 (0)