Skip to content

Commit

Permalink
🎨 Release: Make installing setuptools-ocrd conditional on ocrd-tool.json
Browse files Browse the repository at this point in the history
  • Loading branch information
mikegerber committed Aug 4, 2023
1 parent dd16a16 commit 0319d08
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0319d08

Please sign in to comment.