This repository has been archived by the owner on Feb 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 248
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add script to automaticallly run notebooks (#1553)
* Refactor: Move shared logic to 'tools.py' * Tweak: Make Vale quieter during CI run * Add script to automatically run notebooks * Update notebook outputs * Disable all tensorflow logs * Update Python reqs. Co-authored-by: //va <[email protected]>
- Loading branch information
1 parent
30a48e9
commit befa92e
Showing
23 changed files
with
30,890 additions
and
869 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,10 @@ on: | |
workflow_dispatch: | ||
pull_request: | ||
|
||
env: | ||
# Disable Tensorflow information messages | ||
TF_CPP_MIN_LOG_LEVEL: 3 | ||
|
||
jobs: | ||
test-run: | ||
name: Run tests | ||
|
@@ -42,8 +46,20 @@ jobs: | |
- name: Install Vale | ||
run: sudo snap install --edge vale | ||
|
||
- name: Get changed notebooks | ||
id: changed-notebooks | ||
uses: tj-actions/[email protected] | ||
with: | ||
files: '**.ipynb' | ||
|
||
- name: Notebook tests | ||
run: npm run test:nb | ||
run: | | ||
echo "::group::Linting" | ||
npm run test:nb | ||
echo "::endgroup::" | ||
echo "::group::Run changed notebooks" | ||
python3 ./scripts/content_checks/nb_autorun.py ${{ steps.changed-files.outputs.all_changed_files }} --fail-on-warning | ||
echo "::endgroup::" | ||
- name: Build | ||
run: npm run build | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,17 @@ | ||
cython==0.29.32 | ||
cmake==3.24.1 | ||
nbqa==1.3.1 | ||
pylint==2.14.3 | ||
scour==0.38.2 | ||
qiskit==0.37 | ||
qiskit==0.37.2 | ||
qiskit-nature==0.4.1 | ||
qiskit-machine-learning==0.4.0 | ||
qiskit-finance==0.3.2 | ||
qiskit-ignis==0.7.0 | ||
scikit-learn==1.0.1 | ||
tensorflow==2.9.1 | ||
matplotlib==3.5.2 | ||
pyscf==2.0.1 | ||
pylatexenc==2.10 | ||
ipywidgets==8.0.1 | ||
qiskit-machine-learning[sparse] | ||
qiskit-experiments==0.4.0 |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.