Skip to content

Commit

Permalink
[brief] Fixing the sourcing of the venv for windows.
Browse files Browse the repository at this point in the history
[detailed]
- Windows has a different path for the venv files, so we need to handle
  it.
  • Loading branch information
marovira committed Jun 20, 2024
1 parent a9c7506 commit 183a12f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,17 @@ jobs:
path: venv

- name: Install dependencies
shell: bash
env:
RUNNER: ${{ matrix.os }}
run: |
python -m venv venv
source venv/bin/activate
if [[ "$RUNNER" == "windows-latest" ]]; then
source venv/Scripts/activate
else
source venv/bin/activate
fi
python -m pip install numpy==1.26.4
python -m pip install -r requirements/ci.txt
echo "$VIRTUAL_ENV/bin" >> $GITHUB_PATH
Expand Down

0 comments on commit 183a12f

Please sign in to comment.