Skip to content

Commit 527b539

Browse files
hongyx11mrava87
andauthored
CI: Cupy Testing GA (#672)
Added new GA to run tests with CuPy backed on self-hosted runner. --------- Co-authored-by: Matteo Ravasi <[email protected]>
1 parent a61dd4e commit 527b539

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/buildcupy.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: PyLops Testing (CuPy)
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
runs-on: self-hosted
8+
steps:
9+
- name: Check out source repository
10+
uses: actions/checkout@v4
11+
- name: Print checked code and check environments
12+
run: |
13+
ls -lah
14+
echo $(pwd)
15+
echo $(which python3)
16+
echo $(which pip3)
17+
- name: Set up Python environment and Install dependencies
18+
run: |
19+
python3 -m venv pylopsvenv
20+
source pylopsvenv/bin/activate
21+
echo $(which python3)
22+
echo $(which pip3)
23+
python3 -m pip install --upgrade pip setuptools
24+
pip install flake8 pytest setuptools-scm
25+
pip install -r requirements-dev-gpu.txt
26+
- name: Install pylops
27+
run: |
28+
source pylopsvenv/bin/activate
29+
python3 -m setuptools_scm
30+
pip install .
31+
- name: Tests with pytest
32+
run: |
33+
export CUPY_PYLOPS=1; export TEST_CUPY_PYLOPS=1;
34+
source pylopsvenv/bin/activate
35+
pytest

0 commit comments

Comments
 (0)