|
|
|
@ -14,8 +14,17 @@ jobs:
|
|
|
|
|
steps:
|
|
|
|
|
- name: Checkout
|
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
|
- name: Upgrade pip
|
|
|
|
|
run: python3 -m pip install --upgrade pip
|
|
|
|
|
- name: Install setuptools
|
|
|
|
|
run: |
|
|
|
|
|
python3 -m pip install --upgrade setuptools
|
|
|
|
|
# For OCR-D tools, we need setuptools-ocrd to get the version
|
|
|
|
|
if [ -e ocrd-tool.json ]; then
|
|
|
|
|
python3 -m pip install setuptools-ocrd
|
|
|
|
|
fi
|
|
|
|
|
- name: Check git tag vs package version
|
|
|
|
|
run: python3 -m pip install --upgrade setuptools setuptools-ocrd && .github/workflows/release-check-version-tag
|
|
|
|
|
run: .github/workflows/release-check-version-tag
|
|
|
|
|
- name: Build package
|
|
|
|
|
run: python3 -m pip install --upgrade build && python3 -m build
|
|
|
|
|
- name: Test
|
|
|
|
|