|
|
@ -11,8 +11,7 @@ jobs:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
matrix:
|
|
|
|
python-version: ['3.7', '3.8', '3.9']
|
|
|
|
python-version: ['3.7', '3.8', '3.9', '3.10']
|
|
|
|
|
|
|
|
|
|
|
|
steps:
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Set up Python
|
|
|
|
- name: Set up Python
|
|
|
@ -31,11 +30,14 @@ jobs:
|
|
|
|
- name: Cache models
|
|
|
|
- name: Cache models
|
|
|
|
uses: actions/cache@v3
|
|
|
|
uses: actions/cache@v3
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
key: detectron-models
|
|
|
|
key: models
|
|
|
|
path: /home/runner/.local/share/ocrd-resources/ocrd-sbb-binarize/*
|
|
|
|
path: /home/runner/.local/share/ocrd-resources/ocrd-sbb-binarize/*
|
|
|
|
- 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
|
|
|
|
- name: Run tests
|
|
|
|
- name: Run tests
|
|
|
|
run: make test
|
|
|
|
run: make test
|
|
|
|
|
|
|
|
- name: Setup upterm session when failure
|
|
|
|
|
|
|
|
if: failure()
|
|
|
|
|
|
|
|
uses: lhotari/action-upterm@v1
|
|
|
|
|
|
|
|
|
|
|
|