From 02b36bea7a9d570e8fed5eac3cbb590fe7050556 Mon Sep 17 00:00:00 2001 From: Steven Kalt Date: Sun, 25 Aug 2024 11:00:32 -0400 Subject: [PATCH] ci(wrappers/python): correct path to non-github-specific script --- .github/workflows/test.yml | 5 ++++- wrappers/python/scripts/ci/github/integration_tests.sh | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 03aa488e..b7116138 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -143,7 +143,10 @@ jobs: - name: ensure cog up-to-date working-directory: ./wrappers/python - run: ./scripts/ci/github/cog/check.sh + run: | + export VIRTUAL_ENV="$PWD/.venv" + export PATH="$VIRTUAL_ENV/bin:$PATH" + ./scripts/ci/cog/check.sh - name: Test python API timeout-minutes: 1 diff --git a/wrappers/python/scripts/ci/github/integration_tests.sh b/wrappers/python/scripts/ci/github/integration_tests.sh index 83be21cc..564892bf 100755 --- a/wrappers/python/scripts/ci/github/integration_tests.sh +++ b/wrappers/python/scripts/ci/github/integration_tests.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash set -eu export PATH="$PWD/target/release:$PATH" -export PYTHONPATH="$PWD/wrappers/python/src:$PYTHONPATH" +export PYTHONPATH="$PWD/wrappers/python/src:${PYTHONPATH:-}" export PAGEFIND_PYTHON_LOG_LEVEL=DEBUG cd wrappers/python