mirror of
https://github.com/qurator-spk/sbb_binarization.git
synced 2025-06-26 04:29:55 +02:00
make git submodule update depend on subdir
This commit is contained in:
parent
b1bcc7f042
commit
01fc36a960
3 changed files with 3 additions and 6 deletions
|
@ -18,7 +18,6 @@ jobs:
|
|||
key: ocrd-resources-{{ checksum "requirements.txt" }}-{{ checksum "Makefile" }}
|
||||
paths:
|
||||
ocrd-resources
|
||||
- run: git submodule update --init
|
||||
- run: make test
|
||||
|
||||
|
||||
|
|
2
.github/workflows/test.yml
vendored
2
.github/workflows/test.yml
vendored
|
@ -32,8 +32,6 @@ jobs:
|
|||
with:
|
||||
key: models
|
||||
path: /home/runner/.local/share/ocrd-resources/ocrd-sbb-binarize/*
|
||||
- name: Clone submodules
|
||||
run: git submodule update --init
|
||||
- name: Install dependencies for test
|
||||
# also downloads models, if not already present
|
||||
run: make models test/assets
|
||||
|
|
6
Makefile
6
Makefile
|
@ -24,13 +24,13 @@ install:
|
|||
models:
|
||||
ocrd resmgr download ocrd-sbb-binarize "*"
|
||||
|
||||
repo/assets:
|
||||
repo/assets/data:
|
||||
git submodule update --init
|
||||
|
||||
# Setup test data
|
||||
test/assets: repo/assets
|
||||
test/assets: repo/assets/data
|
||||
@mkdir -p $@
|
||||
cp -r -t $@ repo/assets/data/*
|
||||
cp -r -t $@ $</*
|
||||
|
||||
# Run tests
|
||||
.PHONY: test
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue