Skip to content

Commit 7f7d8d7

Browse files
committed
Remove only in v5
1 parent cf3631b commit 7f7d8d7

File tree

2 files changed

+20
-3
lines changed

2 files changed

+20
-3
lines changed

.github/workflows/nightly_ci.yaml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,10 @@ jobs:
1717
include:
1818
- qutip-version: '4'
1919
qutip-branch: 'qutip-4.7.X'
20+
qip-branch: 'qutip-qip-0.4.X'
2021
- qutip-version: '5'
2122
qutip-branch: 'master'
23+
qip-branch: 'master'
2224

2325
- name: Setup Conda
2426
uses: conda-incubator/setup-miniconda@v3
@@ -54,7 +56,7 @@ jobs:
5456
pip install -r requirements.txt
5557
pip install .
5658
cd ..
57-
python -m pip install git+https://github.com/qutip/qutip-qip
59+
python -m pip install git+https://github.com/qutip/qutip-qip@${{ matrix.qip-branch }}
5860
python -m pip install --no-deps git+https://github.com/qutip/qutip-jax
5961
python -m pip install --no-deps git+https://github.com/qutip/qutip-qoc
6062
@@ -81,6 +83,11 @@ jobs:
8183
find . -name '*.md' -exec jupytext --to notebook {} +
8284
find . -name '*.md' -delete
8385
86+
- name: Remove cuQuantum notebook from tests
87+
# Without GPU, this notebook can't be ran.
88+
if: ${{ matrix.qutip-version == '5' }}
89+
run: rm notebooks/miscellaneous/cuQuantum_backend.ipynb
90+
8491
- name: Check PEP8 formatting
8592
run: |
8693
pip install nbqa flake8
@@ -93,6 +100,12 @@ jobs:
93100
find . -name '*.ipynb' -exec pytest --nbmake --overwrite --nbmake-timeout=900 {} +
94101
rm template.ipynb
95102
103+
- name: Copy cuQuantum notebook
104+
# Without GPU, this notebook can't be ran.
105+
# Copy the already executed notebook after the tests.
106+
if: ${{ matrix.qutip-version == '5' }}
107+
run: cp tutorials-v5/miscellaneous/cuQuantum_backend.ipynb notebooks/miscellaneous/
108+
96109
- name: Create Notebook Artifact
97110
uses: actions/upload-artifact@v4
98111
with:

.github/workflows/notebook_ci.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,14 @@ jobs:
8383
mkdir notebooks
8484
cp -r tutorials-v${{ matrix.qutip-version }}/* notebooks
8585
cd notebooks
86-
rm miscellaneous/cuQuantum_backend.ipynb
8786
find . -name '*.md' -exec jupytext --to notebook {} +
8887
find . -name '*.md' -delete
8988
89+
- name: Remove cuQuantum notebook from tests
90+
# Without GPU, this notebook can't be ran.
91+
if: ${{ matrix.qutip-version == '5' }}
92+
run: rm notebooks/miscellaneous/cuQuantum_backend.ipynb
93+
9094
- name: Check PEP8 formatting
9195
run: |
9296
pip install nbqa flake8
@@ -103,7 +107,7 @@ jobs:
103107
# Without GPU, this notebook can't be ran.
104108
# Copy the already executed notebook after the tests.
105109
if: ${{ matrix.qutip-version == '5' }}
106-
run: cp ../tutorials-v5/miscellaneous/cuQuantum_backend.ipynb ./miscellaneous/
110+
run: cp tutorials-v5/miscellaneous/cuQuantum_backend.ipynb notebooks/miscellaneous/
107111

108112
- name: Create Notebook Artifact
109113
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)