Skip to content

Commit 4b4a6e6

Browse files
authored
added tests for nan behavior in vertex / ray inputs (#30)
* added tests for nan behavior in vertex / ray inputs * added tests to cover input xr.DataArray nan behavior * added coverage for numpy dtypes * add cupy as test dep. * fixed ci
1 parent 1b288f4 commit 4b4a6e6

3 files changed

Lines changed: 400 additions & 4 deletions

File tree

.github/workflows/gpu-test.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,18 @@ jobs:
3030
with:
3131
fetch-depth: 0
3232

33-
- name: Install Python ${{ matrix.python-version }}
34-
uses: actions/setup-python@v5
33+
- name: Setup Miniconda
34+
uses: conda-incubator/setup-miniconda@v3
3535
with:
3636
python-version: ${{ matrix.python-version }}
37+
activate-environment: test
38+
auto-activate-base: false
39+
miniconda-version: "latest"
40+
41+
- name: Install CuPy
42+
shell: bash -el {0}
43+
run: |
44+
conda install -y -c conda-forge cupy xarray
3745
3846
- name: Verify GPU
3947
run: |
@@ -117,6 +125,7 @@ jobs:
117125
head -15 rtxpy/kernel.ptx
118126
119127
- name: Install otk-pyoptix from source
128+
shell: bash -el {0}
120129
run: |
121130
echo "Using OptiX from: ${OptiX_INSTALL_DIR}"
122131
@@ -128,16 +137,19 @@ jobs:
128137
pip install .
129138
130139
- name: Install rtxpy with CUDA dependencies
140+
shell: bash -el {0}
131141
run: |
132142
python -m pip install -U pip
133-
python -m pip install -ve .[tests,cuda12]
143+
python -m pip install -ve .[tests]
134144
python -m pip list
135145
136146
- name: Run GPU tests
147+
shell: bash -el {0}
137148
run: |
138149
python -m pytest -v rtxpy/tests
139150
140151
- name: Test basic ray tracing
152+
shell: bash -el {0}
141153
run: |
142154
python -c "
143155
from rtxpy import RTX

0 commit comments

Comments
 (0)