Skip to content

Commit 35dbb90

Browse files
committed
envvars are strings
1 parent 9adab4f commit 35dbb90

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/CI.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ jobs:
7777
pip -vv install .
7878
fi
7979
env:
80-
WITH_CUDA: 0
80+
WITH_CUDA: "0"
8181

8282
- name: Lint with flake8
8383
run: |
@@ -89,7 +89,7 @@ jobs:
8989
- name: Run tests
9090
run: pytest -v -s --durations=10
9191
env:
92-
WITH_CUDA: 0
92+
WITH_CUDA: "0"
9393
SKIP_TORCH_COMPILE: ${{ runner.os == 'Windows' && 'true' || 'false' }}
9494
OMP_PREFIX: ${{ runner.os == 'macOS' && '/Users/runner/miniconda3/envs/test' || '' }}
9595
CPU_TRAIN: ${{ runner.os == 'macOS' && 'true' || 'false' }}

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
version = "0"
2828

2929
# If WITH_CUDA is defined
30-
if os.environ.get("WITH_CUDA", 0) == 1:
30+
if os.environ.get("WITH_CUDA", "0") == "1":
3131
use_cuda = True
3232
else:
3333
use_cuda = torch.cuda._is_compiled()

0 commit comments

Comments
 (0)