Skip to content

Commit

Permalink
WIP: Fix Windows CI
Browse files Browse the repository at this point in the history
  • Loading branch information
apyrgio committed Mar 28, 2024
1 parent 8f56094 commit 48eba2b
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,27 @@ on:
- cron: '0 0 * * *' # Run every day at 00:00 UTC.

jobs:
download-tessdata:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Cache Tessdata
id: cache-tessdata
uses: actions/cache@v4
with:
path: share/tessdata/
key: v1-tessdata-${{ hashFiles('./install/common/download-tessdata.py') }}
enableCrossOsArchive: true
- uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Download Tessdata
if: steps.cache-tessdata.outputs.cache-hit != 'true'
run: python3 ./install/common/download-tessdata.py

windows:
runs-on: windows-latest
needs: download-tessdata
env:
DUMMY_CONVERSION: True
steps:
Expand All @@ -18,6 +37,11 @@ jobs:
python-version: '3.11'
- run: pip install poetry
- run: poetry install
- name: Restore cached tessdata
uses: actions/cache/restore@v4
with:
path: share/tessdata/
key: v1-tessdata-${{ hashFiles('./install/common/download-tessdata.py') }}
- name: Run CLI tests
run: poetry run make test
# Taken from: https://github.com/orgs/community/discussions/27149#discussioncomment-3254829
Expand Down

0 comments on commit 48eba2b

Please sign in to comment.