From 1b0f039e6b4f56f312fb121ccac7a26ed9b5692d Mon Sep 17 00:00:00 2001 From: Yuxi Hong Date: Wed, 18 Jun 2025 11:06:43 -0400 Subject: [PATCH 1/4] Create buildcupy.yaml --- .github/workflows/buildcupy.yaml | 35 ++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/buildcupy.yaml diff --git a/.github/workflows/buildcupy.yaml b/.github/workflows/buildcupy.yaml new file mode 100644 index 000000000..bbc363a50 --- /dev/null +++ b/.github/workflows/buildcupy.yaml @@ -0,0 +1,35 @@ +name: Cupy Testing +on: + workflow_dispatch: + +jobs: + Cupy_Testing: + runs-on: self-hosted + steps: + - name: Checkout code + uses: actions/checkout@v3 + - name: Print checked code and check environments + run: | + ls -lah + echo $(pwd) + echo $(which python3) + echo $(which pip3) + - name: create new virtual environment and install dependencies + run: | + python3 -m venv pylopsvenv + source pylopsvenv/bin/activate + echo $(which python3) + echo $(which pip3) + python3 -m pip install --upgrade pip setuptools + pip install flake8 pytest setuptools-scm + pip install -r requirements-dev-gpu.txt + - name: Install pylops + run: | + source pylopsvenv/bin/activate + python3 -m setuptools_scm + pip install . + - name: pytest + run: | + export CUPY_PYLOPS=1; export TEST_CUPY_PYLOPS=1; + source pylopsvenv/bin/activate + pytest From 4eab9e1e1155d0aced6ba17aa6cb79f1a8b8daa9 Mon Sep 17 00:00:00 2001 From: Matteo Ravasi Date: Wed, 18 Jun 2025 16:30:39 +0100 Subject: [PATCH 2/4] Update buildcupy.yaml ci: added on to buildcupy GA --- .github/workflows/buildcupy.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/buildcupy.yaml b/.github/workflows/buildcupy.yaml index bbc363a50..6d277a31e 100644 --- a/.github/workflows/buildcupy.yaml +++ b/.github/workflows/buildcupy.yaml @@ -1,6 +1,6 @@ -name: Cupy Testing -on: - workflow_dispatch: +name: PyLops Testing (CuPy) + +on: [push, pull_request] jobs: Cupy_Testing: From ac0348f92c4f09ff5a2a0f9799a02d61ea32f15c Mon Sep 17 00:00:00 2001 From: Matteo Ravasi Date: Wed, 18 Jun 2025 21:12:06 +0100 Subject: [PATCH 3/4] Update buildcupy.yaml ci: small changes to conform with build.yaml --- .github/workflows/buildcupy.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/buildcupy.yaml b/.github/workflows/buildcupy.yaml index 6d277a31e..370eca697 100644 --- a/.github/workflows/buildcupy.yaml +++ b/.github/workflows/buildcupy.yaml @@ -3,18 +3,18 @@ name: PyLops Testing (CuPy) on: [push, pull_request] jobs: - Cupy_Testing: + build: runs-on: self-hosted steps: - - name: Checkout code - uses: actions/checkout@v3 + - name: Check out source repository + uses: actions/checkout@v4 - name: Print checked code and check environments run: | ls -lah echo $(pwd) echo $(which python3) echo $(which pip3) - - name: create new virtual environment and install dependencies + - name: Set up Python environment and Install dependencies run: | python3 -m venv pylopsvenv source pylopsvenv/bin/activate From 64d7afbf4885d23e99884db9516273a959dd4b7b Mon Sep 17 00:00:00 2001 From: Matteo Ravasi Date: Wed, 18 Jun 2025 21:14:37 +0100 Subject: [PATCH 4/4] ci: small change --- .github/workflows/buildcupy.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/buildcupy.yaml b/.github/workflows/buildcupy.yaml index 370eca697..d0e2fc381 100644 --- a/.github/workflows/buildcupy.yaml +++ b/.github/workflows/buildcupy.yaml @@ -28,7 +28,7 @@ jobs: source pylopsvenv/bin/activate python3 -m setuptools_scm pip install . - - name: pytest + - name: Tests with pytest run: | export CUPY_PYLOPS=1; export TEST_CUPY_PYLOPS=1; source pylopsvenv/bin/activate