Skip to content

Commit e340bbf

Browse files
Fix Windows activate virtual environment CI
1 parent e1d84cc commit e340bbf

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

.github/workflows/ci.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,23 @@ jobs:
3636
python -m pip install --upgrade pip
3737
python -m pip install setuptools==68.2.2 tox==4.12.0 tox-gh-actions==3.2.0
3838
39-
- name: Optional - Install frouros (only used by linters)
40-
if: matrix.python-version == 3.9
39+
- name: Create virtual environment
4140
run: |
4241
python -m venv .venv
42+
43+
- name: Activate virtual environment (Windows)
44+
if: matrix.os == windows-2022
45+
run: |
46+
.venv\Scripts\activate
47+
48+
- name: Activate virtual environment (Linux/macOS)
49+
if: matrix.os != windows-2022
50+
run: |
4351
source .venv/bin/activate
52+
53+
- name: Optional - Install frouros (only used by linters)
54+
if: matrix.python-version == 3.9
55+
run: |
4456
pip install "pytest>=7.4.4,<7.5"
4557
pip install -e .
4658

0 commit comments

Comments
 (0)