Skip to content

Commit 5044214

Browse files
committed
Re-enable more windows envs in CI.
Enable UTF-8 mode to prevent cp1252 errors during test runs. See https://docs.python.org/3/using/windows.html#utf-8-mode
1 parent c31957a commit 5044214

File tree

2 files changed

+4
-49
lines changed

2 files changed

+4
-49
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -117,54 +117,6 @@ jobs:
117117
- name: "3.10"
118118
toxenv: typing
119119
exclude:
120-
- os: windows-latest
121-
python-version:
122-
name: pypy-3.8
123-
toxenv: pypy3-noextra-build
124-
- os: windows-latest
125-
python-version:
126-
name: pypy-3.8
127-
toxenv: pypy3-noextra-tests
128-
- os: windows-latest
129-
python-version:
130-
name: pypy-3.8
131-
toxenv: pypy3-format-build
132-
- os: windows-latest
133-
python-version:
134-
name: pypy-3.8
135-
toxenv: pypy3-format-tests
136-
- os: windows-latest
137-
python-version:
138-
name: pypy-3.8
139-
toxenv: pypy3-formatnongpl-build
140-
- os: windows-latest
141-
python-version:
142-
name: pypy-3.8
143-
toxenv: pypy3-formatnongpl-tests
144-
- os: windows-latest
145-
python-version:
146-
name: "3.10"
147-
toxenv: py310-noextra-tests
148-
- os: windows-latest
149-
python-version:
150-
name: "3.10"
151-
toxenv: py310-format-tests
152-
- os: windows-latest
153-
python-version:
154-
name: "3.10"
155-
toxenv: py310-formatnongpl-tests
156-
- os: windows-latest
157-
python-version:
158-
name: "3.11.0-alpha - 3.11.0"
159-
toxenv: py311-noextra-tests
160-
- os: windows-latest
161-
python-version:
162-
name: "3.11.0-alpha - 3.11.0"
163-
toxenv: py311-format-tests
164-
- os: windows-latest
165-
python-version:
166-
name: "3.11.0-alpha - 3.11.0"
167-
toxenv: py311-formatnongpl-tests
168120
- os: windows-latest
169121
python-version:
170122
name: "3.10"
@@ -194,6 +146,9 @@ jobs:
194146
if: runner.os == 'macOS' && startsWith(matrix.python-version.toxenv, 'docs-')
195147
- name: Install tox
196148
run: python -m pip install tox
149+
- name: Enable UTF-8 on Windows
150+
run: echo "PYTHONUTF8=1" >> $env:GITHUB_ENV
151+
if: runner.os == 'Windows' && startsWith(matrix.python-version.toxenv, 'py')
197152
- name: Run tox
198153
run: python -m tox -e "${{ matrix.python-version.toxenv }}"
199154

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ skipsdist = True
1111

1212
[testenv]
1313
changedir = {envtmpdir}
14-
passenv = CODECOV* CI
14+
passenv = CODECOV* CI PYTHONUTF8
1515
setenv =
1616
JSON_SCHEMA_TEST_SUITE = {toxinidir}/json
1717

0 commit comments

Comments
 (0)