make git submodule update depend on subdir

pull/59/head
Robert Sachunsky 1 year ago
parent b1bcc7f042
commit 01fc36a960

@ -18,7 +18,6 @@ jobs:
key: ocrd-resources-{{ checksum "requirements.txt" }}-{{ checksum "Makefile" }} key: ocrd-resources-{{ checksum "requirements.txt" }}-{{ checksum "Makefile" }}
paths: paths:
ocrd-resources ocrd-resources
- run: git submodule update --init
- run: make test - run: make test

@ -32,8 +32,6 @@ jobs:
with: with:
key: models key: models
path: /home/runner/.local/share/ocrd-resources/ocrd-sbb-binarize/* path: /home/runner/.local/share/ocrd-resources/ocrd-sbb-binarize/*
- name: Clone submodules
run: git submodule update --init
- name: Install dependencies for test - name: Install dependencies for test
# also downloads models, if not already present # also downloads models, if not already present
run: make models test/assets run: make models test/assets

@ -24,13 +24,13 @@ install:
models: models:
ocrd resmgr download ocrd-sbb-binarize "*" ocrd resmgr download ocrd-sbb-binarize "*"
repo/assets: repo/assets/data:
git submodule update --init git submodule update --init
# Setup test data # Setup test data
test/assets: repo/assets test/assets: repo/assets/data
@mkdir -p $@ @mkdir -p $@
cp -r -t $@ repo/assets/data/* cp -r -t $@ $</*
# Run tests # Run tests
.PHONY: test .PHONY: test

Loading…
Cancel
Save