Skip to content

Commit

Permalink
Test storing venv path as environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
stellabelin committed Oct 17, 2023
1 parent 8f55920 commit d4acd98
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 .
Expand All @@ -106,14 +107,15 @@ 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 .
- name: Test Pharmpy
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}

Expand Down

0 comments on commit d4acd98

Please sign in to comment.