Add make fetch target using venv and add to ailab step

This commit is contained in:
Fam Zheng 2025-11-23 15:28:08 +00:00
parent 72c3420199
commit b539aa8524
2 changed files with 8 additions and 1 deletions

View File

@ -90,4 +90,5 @@ ailab:
- pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
- pip install -r requirements.txt
script:
- make fetch
- date

View File

@ -1,4 +1,6 @@
.PHONY: FORCE emblemscanner-release
.PHONY: FORCE emblemscanner-release fetch
DATA_DIR ?= ../data
IMAGE_TAG := $(shell git rev-parse --short HEAD)
IMAGE_REPO := registry.gitlab.com/euphon/themblem
@ -84,6 +86,10 @@ deploy-api-prod:
test: FORCE
cd api; ./manage.py migrate && ./manage.py test tests
fetch: FORCE
cd emblem5 && ../venv/bin/python ai/fetch-scans.py --data-dir $(DATA_DIR)
cd emblem5 && ../venv/bin/python ai/make-sbs.py --data-dir $(DATA_DIR)
OPENCV_TAG := 4.9.0
opencv/src/LICENSE:
rm -rf opencv/src opencv/contrib