From d4acd987b66c26eeeeaa021e4f2d417fbf8f2414 Mon Sep 17 00:00:00 2001 From: Stella Date: Tue, 17 Oct 2023 14:29:37 +0200 Subject: [PATCH] Test storing venv path as environment variable --- .github/workflows/main.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 7e7d823..6e5fa81 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -98,6 +98,7 @@ jobs: if: runner.os != 'Windows' run: | python3 -m venv pharmpy_venv + echo "venv_path=$(pwd)/pharmpy_venv" >> $GITHUB_ENV source pharmpy_venv/bin/activate pip install . @@ -106,6 +107,7 @@ jobs: if: runner.os == 'Windows' run: | python -m venv pharmpy_venv + echo "venv_path=$(pwd)\pharmpy_venv" >> $GITHUB_ENV pharmpy_venv\Scripts\activate pip install . @@ -113,7 +115,7 @@ jobs: working-directory: pharmr_repo run: | reticulate::py_discover_config() - reticulate::use_python('../pharmpy_repo/pharmpy_venv/bin') + reticulate::use_python(env.venv_path) pharmr::print_pharmpy_version() shell: Rscript {0}