Skip to content

Commit

Permalink
Use env
Browse files Browse the repository at this point in the history
  • Loading branch information
dynobo committed Apr 21, 2021
1 parent a7e9176 commit 241e785
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/tests.yml
Expand Up @@ -43,7 +43,6 @@ jobs:
iwr https://raw.githubusercontent.com/tesseract-ocr/tessdata_best/4.0.0/deu.traineddata -OutFile deu.traineddata;
dir;
cd..;
echo "TESSDATA_PREFIX=D:\a\normcap\normcap\tessdata" >> $GITHUB_ENV;
- name: Poetry install
run: poetry install
- name: Windows specific wheel
Expand All @@ -63,9 +62,11 @@ jobs:
run: xvfb-run --server-args="-screen 0 1024x768x24+32" poetry run pytest
env:
XDG_SESSION_TYPE: wayland
- name: Pytest on Windows and MacOS
if: ${{ matrix.os != 'ubuntu-20.04' }}
- name: Pytest on Windows
if: ${{ matrix.os == 'windows-2019' }}
run: poetry run pytest
env:
TESSDATA_PREFIX: D:\a\normcap\normcap\tessdata
- name: Coveralls
if: ${{ matrix.os == 'ubuntu-20.04' }}
run: poetry run coveralls
Expand Down

0 comments on commit 241e785

Please sign in to comment.