Skip to content

Commit 1b0f039

Browse files
authored
Create buildcupy.yaml
1 parent a61dd4e commit 1b0f039

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

.github/workflows/buildcupy.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Cupy Testing
2+
on:
3+
workflow_dispatch:
4+
5+
jobs:
6+
Cupy_Testing:
7+
runs-on: self-hosted
8+
steps:
9+
- name: Checkout code
10+
uses: actions/checkout@v3
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: create new virtual 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: 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)