Skip to content

Commit a10f496

Browse files
committed
refactor: ues language-specific command to load Python env
1 parent d723339 commit a10f496

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,16 +43,16 @@ jobs:
4343
run: |
4444
# NOTE: maturin requires a virtual environment to be active
4545
python -m venv .venv
46-
source .venv/bin/activate
46+
${{ runner.os == 'Windows' && '.venv\Scripts\activate' || 'source .venv/bin/activate' }}
4747
python -m pip install --upgrade pip
4848
python -m pip install -r requirements-ci.txt
4949
5050
- name: Build Python package
5151
run: |
52-
source .venv/bin/activate
52+
${{ runner.os == 'Windows' && '.venv\Scripts\activate' || 'source .venv/bin/activate' }}
5353
maturin develop
5454
5555
- name: Run Python tests
5656
run: |
57-
source .venv/bin/activate
57+
${{ runner.os == 'Windows' && '.venv\Scripts\activate' || 'source .venv/bin/activate' }}
5858
pytest

0 commit comments

Comments
 (0)