Skip to content

Commit d6e4abd

Browse files
committed
work in progress
1 parent a0e33de commit d6e4abd

1 file changed

Lines changed: 12 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,12 +150,20 @@ jobs:
150150
cd prevent-cli
151151
uv build
152152
153-
- name: Create test venv and install packages
153+
- name: Create test venv and install packages (Linux/macOS)
154+
if: runner.os != 'Windows'
155+
run: |
156+
python -m venv test-env
157+
./test-env/bin/pip install codecov-cli/dist/*.whl prevent-cli/dist/*.whl
158+
./test-env/bin/pip install pytest pytest-cov pytest-asyncio pytest-env pytest-mock
159+
160+
- name: Create test venv and install packages (Windows)
161+
if: runner.os == 'Windows'
154162
run: |
155163
python -m venv test-env
156-
pip install codecov-cli/dist/*.whl prevent-cli/dist/*.whl
157-
pip install pytest pytest-cov pytest-asyncio pytest-env pytest-mock
158-
shell: bash
164+
test-env\Scripts\pip install codecov-cli/dist/*.whl prevent-cli/dist/*.whl
165+
test-env\Scripts\pip install pytest pytest-cov pytest-asyncio pytest-env pytest-mock
166+
shell: cmd
159167

160168
- name: Test with pytest (Linux/macOS)
161169
if: runner.os != 'Windows'

0 commit comments

Comments
 (0)