Skip to content

Commit b3c09f9

Browse files
Fix cross-platform compatibility by using uv run instead of manual venv activation
Co-authored-by: AlexeyKozhevin <[email protected]>
1 parent 90d1ca3 commit b3c09f9

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

.github/workflows/test-install.yml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -95,17 +95,12 @@ jobs:
9595
run: uv sync
9696

9797
- name: Test import with uv
98-
run: |
99-
source .venv/bin/activate || .venv\\Scripts\\activate
100-
python -c 'import nbtools; print("nbtools version:", nbtools.__version__)'
98+
run: uv run python -c 'import nbtools; print("nbtools version:", nbtools.__version__)'
10199

102100
- name: Test console scripts with uv
103-
run: |
104-
source .venv/bin/activate || .venv\\Scripts\\activate
105-
nbstat --help
101+
run: uv run nbstat --help
106102

107103
- name: Test optional dependencies with uv
108104
run: |
109105
uv sync --extra dev --extra nbrun
110-
source .venv/bin/activate || .venv\\Scripts\\activate
111-
python -c 'import ruff; print("ruff available")'
106+
uv run python -c 'import ruff; print("ruff available")'

0 commit comments

Comments
 (0)