This commit is contained in:
@@ -19,7 +19,7 @@ jobs:
|
||||
- name: Reuse runner PyTorch and install lightweight dependencies
|
||||
run: |
|
||||
python -m venv --system-site-packages .venv-ci
|
||||
.venv-ci/bin/python -m pip install numpy pillow pyyaml scipy pytest ruff
|
||||
.venv-ci/bin/python -m pip install numpy pillow pyyaml pytest ruff
|
||||
- name: Lint
|
||||
run: .venv-ci/bin/ruff check .
|
||||
- name: Unit tests
|
||||
|
||||
@@ -19,7 +19,7 @@ jobs:
|
||||
- name: Reuse runner PyTorch and install lightweight dependencies
|
||||
run: |
|
||||
python -m venv --system-site-packages .venv-gpu
|
||||
.venv-gpu/bin/python -m pip install numpy pillow pyyaml scipy transformers pytest ruff
|
||||
.venv-gpu/bin/python -m pip install numpy pillow pyyaml transformers pytest ruff
|
||||
- name: Verify PyTorch sees the GPU
|
||||
run: |
|
||||
.venv-gpu/bin/python -c "import torch; assert torch.cuda.is_available(); print(torch.__version__, torch.version.cuda, torch.cuda.get_device_name(), torch.cuda.get_device_capability())"
|
||||
|
||||
Reference in New Issue
Block a user