From 07bf23807db1f5530381372a890e7b294dc89be5 Mon Sep 17 00:00:00 2001 From: Kristoffer Andersson Date: Mon, 18 Nov 2024 11:58:39 +0100 Subject: [PATCH] ci: adapt release workflow --- .github/workflows/release-viklofg-sweocr.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release-viklofg-sweocr.yml b/.github/workflows/release-viklofg-sweocr.yml index 8356034..d056f87 100644 --- a/.github/workflows/release-viklofg-sweocr.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: @@ -56,7 +56,7 @@ jobs: # ----- build distribution ----- #---------------------------------------------- - name: Build distribution - run: make build + run: cd ocr-correction-viklofg-sweocr && make build #---------------------------------------------- # ----- upload artifacts ----- @@ -64,7 +64,7 @@ jobs: - uses: actions/upload-artifact@v4 with: name: pypi_files - path: dist + path: ocr-correction-viklofg-sweocr/dist test-build: # This action runs the test suite on the built artifact in the `build` action. @@ -98,11 +98,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: @@ -124,7 +124,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: