File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88 steps :
99 - name : Check out source repository
1010 uses : actions/checkout@v4
11- - name : Print checked code and check environments
11+ - name : Set up Python environment and Install dependencies and pylops
1212 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 .
13+ python3 -m venv .venv-pylops
14+ # write install scripts
15+ cat << 'EOF' > pylops_test.sh
16+ #!/bin/bash
17+ PYTHON=.venv-pylops/bin/python3
18+ PIP=.venv-pylops/bin/pip
19+ ls $PYTHON
20+ ls $PIP
21+ EOF
22+ srun --account=yuxilab -n 1 -N 1 --gres=gpu:L40S:1 bash pylops_tests.sh
3123 - name : Tests with pytest
3224 run : |
3325 export CUPY_PYLOPS=1; export TEST_CUPY_PYLOPS=1;
34- source pylopsvenv/bin/activate
35- pytest
26+ echo "done!"
27+ # source pylopsvenv/bin/activate
28+ # pytest
You can’t perform that action at this time.
0 commit comments