Skip to content

Commit

Permalink
Enhance CI workflow to configure environment variables for Windows co…
Browse files Browse the repository at this point in the history
…mpatibility
  • Loading branch information
polischuks committed Feb 15, 2025
1 parent 18eda9f commit 8c96438
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 8c96438

Please sign in to comment.