Skip to content

Commit 903203e

Browse files
committed
Run some unit tests on CI.
Most tests are out of reach because they require an NVIDIA GPU, but a few can run. Might as well enable them.
1 parent 0e864be commit 903203e

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.github/workflows/ci_linux.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,9 @@ jobs:
9292
RUSTFLAGS: -Dwarnings
9393
run: cargo clippy --workspace --exclude "optix*" --exclude "path-tracer" --exclude "denoiser" --exclude "ex0*" --exclude "cudnn*"
9494

95-
# Don't currently test because many tests rely on the system having a CUDA GPU
96-
# - name: Test
97-
# run: cargo test --workspace
95+
# Very limited testing because we can only run tests that don't rely on having a CUDA GPU.
96+
- name: Test
97+
run: cargo test -p nvvm -p rustc_codegen_nvvm
9898

9999
- name: Check documentation
100100
env:

.github/workflows/ci_windows.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,9 @@ jobs:
9191
RUSTFLAGS: -Dwarnings
9292
run: cargo clippy --workspace --exclude "optix*" --exclude "path-tracer" --exclude "denoiser" --exclude "vecadd*" --exclude "gemm*" --exclude "ex0*" --exclude "cudnn*" --exclude "sha2*"
9393

94-
# Don't currently test because many tests rely on the system having a CUDA GPU
95-
# - name: Test
96-
# run: cargo test --workspace
94+
# Very limited testing because we can only run tests that don't rely on having a CUDA GPU.
95+
- name: Test
96+
run: cargo test -p nvvm -p rustc_codegen_nvvm
9797

9898
- name: Check documentation
9999
env:

0 commit comments

Comments
 (0)