@@ -225,36 +225,36 @@ jobs:
225225 with :
226226 name : tutorials${{ matrix.python-version }}
227227 path : docs/_build/html/artifacts/tutorials.tar.gz
228- # - name: Run stable tutorials
229- # env:
230- # QISKIT_PARALLEL: False
231- # QISKIT_DOCS_BUILD_TUTORIALS: 'always'
232- # run: |
233- # # clean last sphinx output
234- # make clean_sphinx
235- # # get current version
236- # version=$(pip show qiskit-machine-learning | awk -F. '/^Version:/ { print substr($1,10), $2-1 }' OFS=.)
237- # # download stable version
238- # wget https://codeload.github.com/qiskit-community/qiskit-machine-learning/zip/stable/$version -O /tmp/repo.zip
239- # unzip /tmp/repo.zip -d /tmp/
240- # # copy stable tutorials to main tutorials
241- # cp -R /tmp/qiskit-machine-learning-stable-$version/docs/tutorials/* docs/tutorials
242- # # run tutorials and zip results
243- # echo "earliest_version: 0.1.0" >> releasenotes/config.yaml
244- # # ignore unreleased/untagged notes
245- # tools/ignore_untagged_notes.sh
246- # make html
247- # cd docs/_build/html
248- # mkdir artifacts
249- # tar -zcvf artifacts/tutorials.tar.gz --exclude=./artifacts .
250- # if: ${{ matrix.python-version == 3.9 && !startsWith(github.ref, 'refs/heads/stable') && !startsWith(github.base_ref, 'stable/') }}
251- # shell: bash
252- # - name: Run upload stable tutorials
253- # uses: actions/upload-artifact@v4
254- # with:
255- # name: tutorials-stable${{ matrix.python-version }}
256- # path: docs/_build/html/artifacts/tutorials.tar.gz
257- # if: ${{ matrix.python-version == 3.9 && !startsWith(github.ref, 'refs/heads/stable') && !startsWith(github.base_ref, 'stable/') }}
228+ - name : Run stable tutorials
229+ env :
230+ QISKIT_PARALLEL : False
231+ QISKIT_DOCS_BUILD_TUTORIALS : ' always'
232+ run : |
233+ # clean last sphinx output
234+ make clean_sphinx
235+ # get current version
236+ version=$(pip show qiskit-machine-learning | awk -F. '/^Version:/ { print substr($1,10), $2-1 }' OFS=.)
237+ # download stable version
238+ wget https://codeload.github.com/qiskit-community/qiskit-machine-learning/zip/stable/$version -O /tmp/repo.zip
239+ unzip /tmp/repo.zip -d /tmp/
240+ # copy stable tutorials to main tutorials
241+ cp -R /tmp/qiskit-machine-learning-stable-$version/docs/tutorials/* docs/tutorials
242+ # run tutorials and zip results
243+ echo "earliest_version: 0.1.0" >> releasenotes/config.yaml
244+ # ignore unreleased/untagged notes
245+ tools/ignore_untagged_notes.sh
246+ make html
247+ cd docs/_build/html
248+ mkdir artifacts
249+ tar -zcvf artifacts/tutorials.tar.gz --exclude=./artifacts .
250+ if : ${{ matrix.python-version == 3.9 && !startsWith(github.ref, 'refs/heads/stable') && !startsWith(github.base_ref, 'stable/') }}
251+ shell : bash
252+ - name : Run upload stable tutorials
253+ uses : actions/upload-artifact@v4
254+ with :
255+ name : tutorials-stable${{ matrix.python-version }}
256+ path : docs/_build/html/artifacts/tutorials.tar.gz
257+ if : ${{ matrix.python-version == 3.9 && !startsWith(github.ref, 'refs/heads/stable') && !startsWith(github.base_ref, 'stable/') }}
258258 Deprecation_Messages_and_Coverage :
259259 needs : [Checks, MachineLearning, Tutorials]
260260 runs-on : ubuntu-latest
0 commit comments