Skip to content

Commit

Permalink
CI tests: Set PYTHONIOENCODING=utf-8 on Windows
Browse files Browse the repository at this point in the history
This is to work-around a tox encoding bug.

Ref: tox-dev/tox#1550
  • Loading branch information
dairiki committed Sep 20, 2021
1 parent e09e3ea commit 3aafbf3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,13 @@ jobs:
if: startsWith(runner.os, 'windows') && matrix.python == '3.9'
run: choco install --no-progress --timeout 600 imagemagick.tool ffmpeg
continue-on-error: true
- name: Workaround for UnicodeDecodeError from tox on Windows
# Refs:
# https://github.com/lektor/lektor/pull/933#issuecomment-923107580
# https://github.com/tox-dev/tox/issues/1550
if: startsWith(runner.os, 'windows')
shell: bash
run: echo "PYTHONIOENCODING=utf-8" >> $GITHUB_ENV
- name: Install python dependencies
run: python -m pip install codecov tox
- name: Run python tests
Expand Down

0 comments on commit 3aafbf3

Please sign in to comment.