Skip to content

Commit

Permalink
fix(ci): Fix integration test
Browse files Browse the repository at this point in the history
Signed-off-by: Marcel Klehr <[email protected]>
  • Loading branch information
marcelklehr committed Feb 21, 2024
1 parent 162ae9e commit f0037fa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ jobs:
working-directory: ${{ env.APP_NAME }}
run: |
pip install -r requirements.txt
make download-models
make download-a-few-models
python3 lib/main.py &
- name: Register backend
Expand Down
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.DEFAULT_GOAL := help
LANGPAIRS = de-en de-es de-fr de-zh en-de en-es en-fr en-zh es-de es-en es-fr fr-de fr-en fr-es zh-de zh-en
LANGS=de en es fr zh it sv ar fi nl ja tr
FEW_LANGS=de en

.PHONY: help
help:
Expand All @@ -22,6 +23,8 @@ help:

download-models: $(foreach l1,$(LANGS),$(foreach l2,$(LANGS),models/${l1}-${l2}))

download-a-few-models: $(foreach l1,$(FEW_LANGS),$(foreach l2,$(FEW_LANGS),models/${l1}-${l2}))

models/%:
GIT_TERMINAL_PROMPT=0 git clone "https://huggingface.co/Helsinki-NLP/opus-mt-$*" "$@" || echo "$* does not exist"

Expand Down

0 comments on commit f0037fa

Please sign in to comment.