Skip to content

Commit fb6c769

Browse files
committed
Remove only in v5
1 parent cf3631b commit fb6c769

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
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 & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,11 @@ jobs:
8787
find . -name '*.md' -exec jupytext --to notebook {} +
8888
find . -name '*.md' -delete
8989
90+
- name: Remove cuQuantum notebook from tests
91+
# Without GPU, this notebook can't be ran.
92+
if: ${{ matrix.qutip-version == '5' }}
93+
run: rm notebooks/miscellaneous/cuQuantum_backend.ipynb
94+
9095
- name: Check PEP8 formatting
9196
run: |
9297
pip install nbqa flake8
@@ -103,7 +108,7 @@ jobs:
103108
# Without GPU, this notebook can't be ran.
104109
# Copy the already executed notebook after the tests.
105110
if: ${{ matrix.qutip-version == '5' }}
106-
run: cp ../tutorials-v5/miscellaneous/cuQuantum_backend.ipynb ./miscellaneous/
111+
run: cp tutorials-v5/miscellaneous/cuQuantum_backend.ipynb notebooks/miscellaneous/
107112

108113
- name: Create Notebook Artifact
109114
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)