-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (29 loc) · 928 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: CI
on:
push:
jobs:
test:
name: Run test
runs-on: windows-latest
strategy:
matrix:
python-version: ["3.11"]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Get system locale
run: Get-WinSystemLocale
shell: powershell
- name: Check python encoding on default locale
run: |
echo a | python -I -c "import sys; print(sys.stdin.encoding)"
echo a | python -I -X utf8 -c "import sys; print(sys.stdin.encoding)"
- name: Set system locale to JP
run: Set-WinSystemLocale ja-JP
shell: powershell
- name: Check python encoding on JP locale
run: |
echo a | python -I -c "import sys; print(sys.stdin.encoding)"
echo a | python -I -X utf8 -c "import sys; print(sys.stdin.encoding)"