Skip to content

Commit

Permalink
[ci] Inject Python virtualenv if available.
Browse files Browse the repository at this point in the history
  • Loading branch information
Axel-Naumann committed Aug 21, 2023
1 parent 3cf9125 commit 4e8c577
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/root-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,12 @@ jobs:
PYTHONUNBUFFERED: true

steps:
- name: Set up Python Virtual Env
# if the `if` expr is false, `if` still has exit code 0.
# if the `if` block is entered, the block's exit code becomes the exit
# code of the `if`.
run: 'if [ -d /py-venv/ROOT-CI/bin/ ]; then . /py-venv/ROOT-CI/bin/activate && echo PATH=$PATH >> $GITHUB_ENV; fi'

- name: Checkout
uses: actions/checkout@v3

Expand Down

0 comments on commit 4e8c577

Please sign in to comment.