From a719ff3cf18ea3d932706b23a8220f7a26494ae1 Mon Sep 17 00:00:00 2001 From: Etienne Wallet <116115319+EtienneWallet@users.noreply.github.com> Date: Sat, 25 Jan 2025 08:37:58 +0100 Subject: [PATCH] fix: missing venv activation in gitlab ci --- .github/workflows/python-ci.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/python-ci.yaml b/.github/workflows/python-ci.yaml index 3648a31..5d3ae25 100644 --- a/.github/workflows/python-ci.yaml +++ b/.github/workflows/python-ci.yaml @@ -23,6 +23,7 @@ jobs: - name: Check python code run: | + source .venv/bin/activate bash scripts/check_python_code.sh @@ -46,6 +47,7 @@ jobs: - name: Test python code run: | + source .venv/bin/activate bash scripts/launch_unit_tests.sh @@ -69,6 +71,7 @@ jobs: - name: Check and Build Documentation run: | + source .venv/bin/activate bash scripts/build_doc.sh @@ -103,11 +106,14 @@ jobs: - name: Build python code if: steps.dist-cache.outputs.cache-hits != 'true' - run: bash scripts/build.sh + run: | + source .venv/bin/activate + bash scripts/build.sh - name: retrieve version id: retrieve-version run: | + source .venv/bin/activate PACKAGE_VERSION=$(bump2version --dry-run --list patch | grep current_version | sed -E 's/.*=//') echo "package_version=$PACKAGE_VERSION" >> $GITHUB_OUTPUT if [ $GITHUB_REF == "refs/heads/main" ]