From b1bc0212a142c0216c39bc9234a4c745f58e65e5 Mon Sep 17 00:00:00 2001 From: Jose Javier Merchante Date: Tue, 30 Jan 2024 17:58:05 +0100 Subject: [PATCH] [ci/release] Install package before running SortingHat Prior to running SortingHat, it's important to install the package. This change ensures that we can utilize the identical version from the package when deploying SortingHat. Signed-off-by: Jose Javier Merchante --- .github/workflows/release.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8d31e5a3a..00fb1c22c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -71,6 +71,11 @@ jobs: run: | curl -fsSL "http://localhost:9200/_cat/health?h=status" + - name: Install the package + run: | + PACKAGE=`(cd dist && ls *whl)` && echo $PACKAGE + poetry run pip install --pre ./dist/$PACKAGE + - name: Run Sortinghat Server env: SORTINGHAT_SECRET_KEY: "my-secret-key" @@ -85,8 +90,6 @@ jobs: - name: Test package run: | - PACKAGE=`(cd dist && ls *whl)` && echo $PACKAGE - poetry run pip install --pre ./dist/$PACKAGE cd tests && poetry run python run_tests.py release: