diff --git a/.github/workflows/release.yml b/.github/workflows/release-viklofg-sweocr.yml similarity index 87% rename from .github/workflows/release.yml rename to .github/workflows/release-viklofg-sweocr.yml index 19310c0..c3a0065 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release-viklofg-sweocr.yml @@ -5,7 +5,7 @@ on: branches: - main tags: - - "v[0-9]+.[0-9]+.[0-9]+" + - "ocr-correction-viklofg-sweocr-v[0-9]+.[0-9]+.[0-9]+" pull_request: merge_group: @@ -63,7 +63,7 @@ jobs: # ----- build distribution ----- #---------------------------------------------- - name: Build distribution - run: make build + run: cd ocr-correction-viklofg-sweocr && make build #---------------------------------------------- # ----- upload artifacts ----- @@ -71,7 +71,7 @@ jobs: - uses: actions/upload-artifact@v4 with: name: pypi_files - path: dist + path: ocr-correction-viklofg-sweocr/dist - name: Minimize uv cache run: uv cache prune --ci @@ -108,11 +108,11 @@ jobs: name: pypi_files path: dist - - run: rm -r + - run: rm -r ocr-correction-viklofg-sweocr/src - run: pip install typing-extensions - - run: pip install -r tests/requirements-testing.lock - - run: pip install --no-index --no-deps --find-links dist --force-reinstall - - run: pytest + - run: pip install -r ocr-correction-viklofg-sweocr/tests/requirements-testing.lock + - run: pip install sparv-sbx-ocr-correction-viklofg-sweocr --no-index --no-deps --find-links dist --force-reinstall + - run: pytest ocr-correction-viklofg-sweocr/tests # https://github.com/marketplace/actions/alls-green#why used for branch protection checks release-check: @@ -134,7 +134,7 @@ jobs: needs: - test-build - if: success() && startsWith(github.ref, 'refs/tags/v') + if: success() && startsWith(github.ref, 'refs/tags/ocr-correction-viklofg-sweocr-v') runs-on: ubuntu-latest environment: release permissions: