mirror of
https://github.com/qurator-spk/sbb_binarization.git
synced 2025-07-25 18:59:52 +02:00
update CircleCI
This commit is contained in:
parent
9a6730ef3a
commit
30e467cd4c
1 changed files with 11 additions and 22 deletions
|
@ -2,16 +2,19 @@ version: 2
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
build-python37:
|
build-python:
|
||||||
docker:
|
parameters:
|
||||||
- image: python:3.7
|
python-version:
|
||||||
|
type: string
|
||||||
|
docker:
|
||||||
|
- image: cimg/python:<< parameters.python-version >>
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- restore_cache:
|
- restore_cache:
|
||||||
keys:
|
keys:
|
||||||
- ocrd-resources-{{ checksum "requirements.txt" }}-{{ checksum "Makefile" }}
|
- ocrd-resources-{{ checksum "requirements.txt" }}-{{ checksum "Makefile" }}
|
||||||
- run: make install
|
- run: make install
|
||||||
- run: make model
|
- run: make models
|
||||||
- save_cache:
|
- save_cache:
|
||||||
key: ocrd-resources-{{ checksum "requirements.txt" }}-{{ checksum "Makefile" }}
|
key: ocrd-resources-{{ checksum "requirements.txt" }}-{{ checksum "Makefile" }}
|
||||||
paths:
|
paths:
|
||||||
|
@ -19,27 +22,13 @@ jobs:
|
||||||
- run: git submodule update --init
|
- run: git submodule update --init
|
||||||
- run: make test
|
- run: make test
|
||||||
|
|
||||||
build-python38:
|
|
||||||
docker:
|
|
||||||
- image: python:3.8
|
|
||||||
steps:
|
|
||||||
- checkout
|
|
||||||
- restore_cache:
|
|
||||||
keys:
|
|
||||||
- ocrd-resources-{{ checksum "requirements.txt" }}-{{ checksum "Makefile" }}
|
|
||||||
- run: make install
|
|
||||||
- run: make model
|
|
||||||
- save_cache:
|
|
||||||
key: ocrd-resources-{{ checksum "requirements.txt" }}-{{ checksum "Makefile" }}
|
|
||||||
paths:
|
|
||||||
ocrd-resources
|
|
||||||
- run: git submodule update --init
|
|
||||||
- run: make test
|
|
||||||
|
|
||||||
workflows:
|
workflows:
|
||||||
version: 2
|
version: 2
|
||||||
build:
|
build:
|
||||||
jobs:
|
jobs:
|
||||||
- build-python37
|
- build-python
|
||||||
- build-python38
|
matrix:
|
||||||
|
parameters:
|
||||||
|
python-version: ['3.7', '3.8', '3.9', '3.10']
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue