mirror of
https://github.com/qurator-spk/sbb_binarization.git
synced 2025-07-06 17:39:54 +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" }}
|
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
|
||||||
|
|
||||||
|
|
||||||
|
|
2
.github/workflows/test.yml
vendored
2
.github/workflows/test.yml
vendored
|
@ -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
|
||||||
|
|
6
Makefile
6
Makefile
|
@ -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…
Add table
Add a link
Reference in a new issue