forked from PyLops/pylops
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (33 loc) · 1.07 KB
/
Copy pathbuildcupy.yaml
File metadata and controls
35 lines (33 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: PyLops Testing (CuPy)
on: [push, pull_request]
jobs:
build:
runs-on: self-hosted
steps:
- name: Check out source repository
uses: actions/checkout@v4
- name: Set up Python environment and Install dependencies and pylops
run: |
python3 -m venv .venv-pylops
# write install scripts
cat << 'EOF' > pylops_tests.sh
#!/bin/bash
PYTHON=.venv-pylops/bin/python3
PIP=.venv-pylops/bin/pip
ls $PYTHON
ls $PIP
$PIP install
$PIP install --upgrade pip setuptools
$PIP install install flake8 pytest setuptools-scm
$PIP install -r requirements-dev-gpu.txt
$PIP install cupy-cuda12x
$PYTHON -m setuptools_scm
$PIP install .
EOF
srun --account=yuxilab -n 1 -N 1 --gres=gpu:L40S:1 bash pylops_tests.sh
- name: Tests with pytest
run: |
export CUPY_PYLOPS=1; export TEST_CUPY_PYLOPS=1;
export PYTEST=.venv-pylops/bin/pytest
$PYTEST
echo "done!"