From 8c96438b170adc8dc5cfe423eba983b8b3762af7 Mon Sep 17 00:00:00 2001 From: polishchuks Date: Sat, 15 Feb 2025 15:20:56 +0200 Subject: [PATCH] Enhance CI workflow to configure environment variables for Windows compatibility --- .github/workflows/ci.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4475bf5..5a3c813 100755 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -85,6 +85,18 @@ jobs: - uses: ./.github/workflows/actions/prepare with: python-version: ${{ matrix.python-version }} + # Set environment variables for Windows + - name: Configure Windows environment + if: runner.os == 'Windows' + run: | + echo "PYTHONIOENCODING=utf-8" >> $GITHUB_ENV + echo "PYTHONUTF8=1" >> $GITHUB_ENV + echo "PYTHONLEGACYWINDOWSSTDIO=0" >> $GITHUB_ENV + shell: bash - name: Run Tests run: poetry run python tests/testing.py shell: bash + env: + PYTHONIOENCODING: utf-8 + PYTHONUTF8: 1 + PYTHONLEGACYWINDOWSSTDIO: 0