Skip to content

Commit

Permalink
CI: passing the Windows/Python specific Unicode environment variables…
Browse files Browse the repository at this point in the history
… before running the testscript
  • Loading branch information
neomatrix369 committed Mar 13, 2023
1 parent 8963949 commit 378458f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/end-to-end-flow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,19 @@ jobs:
- name: install-line-profiler-on-windows-python-3.7
run: |
### https://stackoverflow.com/questions/5419/python-unicode-and-the-windows-console
### https://github.com/conda/conda/issues/7445#issuecomment-774579800
set PYTHONIOENCODING="utf-8"
set PYTHONLEGACYWINDOWSSTDIO="utf-8"
pip install win-unicode-console
python -m pip install line-profiler@https://github.com/neomatrix369/nlp_profiler/releases/download/v0.0.2-dev/line_profiler-3.2.6-cp37-cp37m-win_amd64.whl
if: matrix.python-version == '3.7' && matrix.os == 'windows-latest'

- name: install-line-profiler-on-windows-python-3.8
run: |
### https://stackoverflow.com/questions/5419/python-unicode-and-the-windows-console
### https://github.com/conda/conda/issues/7445#issuecomment-774579800
set PYTHONIOENCODING="utf-8"
set PYTHONLEGACYWINDOWSSTDIO="utf-8"
pip install win-unicode-console
python -m pip install line-profiler@https://github.com/neomatrix369/nlp_profiler/releases/download/v0.0.2-dev/line_profiler-3.2.6-cp38-cp38-win_amd64.whl
if: matrix.python-version == '3.8' && matrix.os == 'windows-latest'
Expand All @@ -77,7 +81,7 @@ jobs:
- name: run-test-coverage-shell-script
shell: bash
run: |
./test-coverage.sh "tests slow-tests"
PYTHONIOENCODING="utf-8" PYTHONLEGACYWINDOWSSTDIO="utf-8" ./test-coverage.sh "tests slow-tests"
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
if: matrix.python-version == '3.8' && matrix.os == 'ubuntu-18.04'
Expand Down

0 comments on commit 378458f

Please sign in to comment.