Skip to content

🐍 Geometric Computer Vision Library for Spatial AI

add cuda version and pull_requests workflows (#799)

Edgar Ribacb02ec7d50a3
diff --git a/.github/workflows/tests_cuda.yml b/.github/workflows/tests_cuda.yml
index 7baf61754..ec98edf81 100644
--- a/.github/workflows/tests_cuda.yml
+++ b/.github/workflows/tests_cuda.yml
@@ -1,10 +1,10 @@
name: tests-cuda
on:
- #push:
- # branches:
- # - master
- #pull_request:
+ push:
+ branches:
+ - master
+ pull_request:
schedule:
- cron: "0 0 * * *"
@@ -18,8 +18,8 @@ jobs:
fail-fast: false
matrix:
python-version: [3.7]
- pytorch-version: [1.6.0, 1.7.0]
- cuda-version: [9.2, 10.1, 10.2]
+ pytorch-version: [1.7.0]
+ cuda-version: [10.2]
steps:
- uses: actions/checkout@v2
- name: Setup conda dependencies
diff --git a/.github/workflows/tests_cuda_versions.yml b/.github/workflows/tests_cuda_versions.yml
new file mode 100644
index 000000000..a18568440
--- /dev/null
+++ b/.github/workflows/tests_cuda_versions.yml
@@ -0,0 +1,39 @@
+name: tests-cuda-versions
+
+on:
+ #push:
+ # branches:
+ # - master
+ #pull_request:
+ schedule:
+ - cron: "0 0 * * *"
+
+jobs:
+ tests-cuda:
+ container:
+ image: nvcr.io/nvidia/pytorch:20.03-py3
+ options: --gpus all
+ runs-on: [self-hosted, Linux, x64]
+ strategy:
+ fail-fast: false
+ matrix:
+ python-version: [3.7]
+ pytorch-version: [1.5.1, 1.6.0, 1.7.0]
+ cuda-version: [9.2, 10.1, 10.2]
+ steps:
+ - uses: actions/checkout@v2
+ - name: Setup conda dependencies
+ uses: conda-incubator/setup-miniconda@v2
+ with:
+ miniconda-version: "latest"
+ auto-update-conda: true
+ python-version: ${{ matrix.python-version }}
+ - name: Install dependencies
+ shell: bash -l {0}
+ run: |
+ conda install pytorch=${{ matrix.pytorch-version }} cudatoolkit=${{ matrix.cuda-version }} -c pytorch
+ pip install -r requirements-dev.txt
+ python setup.py install
+ - name: Run Tests
+ shell: bash -l {0}
+ run: pytest -v --device cuda --dtype float32,float64 ./test