mirror of
https://github.com/qurator-spk/eynollah.git
synced 2025-07-01 06:59:54 +02:00
set up circle ci
This commit is contained in:
parent
6c305de279
commit
5915307667
4 changed files with 43 additions and 0 deletions
28
.circleci/config.yml
Normal file
28
.circleci/config.yml
Normal file
|
@ -0,0 +1,28 @@
|
|||
version: 2
|
||||
|
||||
jobs:
|
||||
|
||||
build-python36:
|
||||
docker:
|
||||
- image: python:3.6
|
||||
steps:
|
||||
- checkout
|
||||
- restore_cache:
|
||||
keys:
|
||||
- model-cache
|
||||
- run: make models
|
||||
- save_cache:
|
||||
key: model-cache
|
||||
paths:
|
||||
models_eynollah.tar.gz
|
||||
models_eynollah
|
||||
- run: make install
|
||||
- run: make smoke-test
|
||||
|
||||
workflows:
|
||||
version: 2
|
||||
build:
|
||||
jobs:
|
||||
- build-python36
|
||||
#- build-python37
|
||||
#- build-python38 # no tensorflow for python 3.8
|
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,3 +1,4 @@
|
|||
*.egg-info
|
||||
__pycache__
|
||||
sbb_newspapers_org_image/pylint.log
|
||||
models_eynollah*
|
||||
|
|
14
Makefile
14
Makefile
|
@ -4,6 +4,7 @@ help:
|
|||
@echo ""
|
||||
@echo " Targets"
|
||||
@echo ""
|
||||
@echo " models Download and extract models to $(PWD)/models_eynollah"
|
||||
@echo " install Install with pip"
|
||||
@echo " install-dev Install editable with pip"
|
||||
@echo ""
|
||||
|
@ -12,6 +13,16 @@ help:
|
|||
|
||||
# END-EVAL
|
||||
|
||||
|
||||
# Download and extract models to $(PWD)/models_eynollah
|
||||
models: models_eynollah
|
||||
|
||||
models_eynollah: models_eynollah.tar.gz
|
||||
tar xf models_eynollah.tar.gz
|
||||
|
||||
models_eynollah.tar.gz:
|
||||
wget 'https://qurator-data.de/eynollah/models_eynollah.tar.gz'
|
||||
|
||||
# Install with pip
|
||||
install:
|
||||
pip install .
|
||||
|
@ -19,3 +30,6 @@ install:
|
|||
# Install editable with pip
|
||||
install-dev:
|
||||
pip install -e .
|
||||
|
||||
smoke-test:
|
||||
eynollah -i tests/resources/kant_aufklaerung_1784_0020.tif -o . -m $(PWD)/models_eynollah
|
||||
|
|
BIN
tests/resources/kant_aufklaerung_1784_0020.tif
Normal file
BIN
tests/resources/kant_aufklaerung_1784_0020.tif
Normal file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue