Skip to content

Commit 2abf77e

Browse files
add test.txt in the cache key for ci.yml
1 parent e66cbb3 commit 2abf77e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
with:
2121
path: |
2222
.venv
23-
key: ci-venv-${{ env.PIPELINE_FAMILY }}-${{ hashFiles('requirements/base.txt') }}
23+
key: ci-venv-${{ env.PIPELINE_FAMILY }}-${{ hashFiles('requirements/base.txt', 'requirements/test.txt') }}
2424
- name: Set up Python ${{ env.PYTHON_VERSION }}
2525
uses: actions/setup-python@v5
2626
with:
@@ -42,7 +42,7 @@ jobs:
4242
with:
4343
path: |
4444
.venv
45-
key: ci-venv-${{ env.PIPELINE_FAMILY }}-${{ hashFiles('requirements/base.txt') }}
45+
key: ci-venv-${{ env.PIPELINE_FAMILY }}-${{ hashFiles('requirements/base.txt', 'requirements/test.txt') }}
4646
- name: Lint
4747
run: |
4848
source .venv/bin/activate
@@ -65,7 +65,7 @@ jobs:
6565
with:
6666
path: |
6767
.venv
68-
key: ci-venv-${{ env.PIPELINE_FAMILY }}-${{ hashFiles('requirements/base.txt') }}
68+
key: ci-venv-${{ env.PIPELINE_FAMILY }}-${{ hashFiles('requirements/base.txt', 'requirements/test.txt') }}
6969
- name: Run core tests
7070
run: |
7171
source .venv/bin/activate
@@ -74,7 +74,7 @@ jobs:
7474
sudo add-apt-repository -y ppa:alex-p/tesseract-ocr5
7575
sudo apt-get install -y tesseract-ocr tesseract-ocr-kor
7676
tesseract --version
77-
make install
77+
make install-nltk-models
7878
make test
7979
make check-coverage
8080
@@ -106,7 +106,7 @@ jobs:
106106
with:
107107
path: |
108108
.venv
109-
key: ci-venv-${{ env.PIPELINE_FAMILY }}-${{ hashFiles('requirements/base.txt') }}
109+
key: ci-venv-${{ env.PIPELINE_FAMILY }}-${{ hashFiles('requirements/base.txt', 'requirements/test.txt') }}
110110
- name: Test Dockerfile
111111
run: |
112112
source .venv/bin/activate

0 commit comments

Comments
 (0)