Skip to content

Commit 4790239

Browse files
committed
Handle utf-8 encoding for windows envs in ci settings
1 parent 3d6f45a commit 4790239

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,15 @@ jobs:
1717
uses: actions/setup-python@v4
1818
with:
1919
python-version: ${{ matrix.python }}
20+
- name: Set UTF-8 encoding on Windows
21+
if: matrix.os == 'windows-latest'
22+
run: |
23+
echo "PYTHONUTF8=1" >> $env:GITHUB_ENV
24+
chcp 65001
25+
shell: pwsh
2026
- name: Install tox and any other packages
2127
run: pip install tox
2228
- name: Run tox
29+
env:
30+
PYTHONUTF8: ${{ matrix.os == 'windows-latest' && '1' || '' }}
2331
run: tox -e py

0 commit comments

Comments
 (0)