forked from econ-ark/HARK
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
455 additions
and
429 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
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 |
---|---|---|
|
@@ -5,7 +5,7 @@ on: | |
workflow_dispatch: | ||
# 6.49 am (GMT) every Monday; time chosen at random | ||
schedule: | ||
- cron: "49 6 * * MON" | ||
- cron: "49 6 * * MON" | ||
|
||
# Limit workflow permissions | ||
permissions: | ||
|
@@ -29,47 +29,47 @@ jobs: | |
pull-requests: write | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python 3.10 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.10" # Numba doesn't support Python 3.11 [2023-05] | ||
cache: 'pip' | ||
cache-dependency-path: | | ||
requirements/base.txt | ||
.github/workflows/execute-notebooks.yml | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python 3.10 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.10" # Numba doesn't support Python 3.11 [2023-05] | ||
cache: "pip" | ||
cache-dependency-path: | | ||
requirements/base.txt | ||
.github/workflows/execute-notebooks.yml | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install . | ||
# For LabeledModels.ipynb | ||
python -m pip install estimagic | ||
# For nbstripout | ||
python -m pip install nbstripout | ||
# For nb_exec.py | ||
python -m pip install ipykernel nbclient nbformat | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install . | ||
# For LabeledModels.ipynb | ||
python -m pip install estimagic | ||
# For nbstripout | ||
python -m pip install nbstripout | ||
# For nb_exec.py | ||
python -m pip install ipykernel nbclient nbformat | ||
- name: Strip output | ||
run: nbstripout examples/**/*.ipynb | ||
- name: Strip output | ||
run: nbstripout examples/**/*.ipynb | ||
|
||
# This step takes c. 20 minutes | ||
- name: Execute notebooks | ||
run: python tools/nb_exec.py examples/**/*.ipynb | ||
env: | ||
PYTHONUNBUFFERED: "1" | ||
# This step takes c. 20 minutes | ||
- name: Execute notebooks | ||
run: python tools/nb_exec.py examples/**/*.ipynb | ||
env: | ||
PYTHONUNBUFFERED: "1" | ||
|
||
- name: Open PR | ||
uses: peter-evans/create-pull-request@v5 | ||
with: | ||
author: "Econ-ARK Bot <[email protected]>" | ||
branch: "bot/update-notebooks" | ||
commit-message: "[bot] updated notebooks" | ||
delete-branch: true | ||
title: "[bot] Execute example notebooks" | ||
# language=Markdown | ||
body: > | ||
This PR was [automatically generated] to re-execute | ||
the example notebooks for use in the documentation. | ||
[automatically generated]: https://github.com/Econ-ARK/HARK/actions/workflows/execute-notebooks.yml | ||
- name: Open PR | ||
uses: peter-evans/create-pull-request@v5 | ||
with: | ||
author: "Econ-ARK Bot <[email protected]>" | ||
branch: "bot/update-notebooks" | ||
commit-message: "[bot] updated notebooks" | ||
delete-branch: true | ||
title: "[bot] Execute example notebooks" | ||
# language=Markdown | ||
body: > | ||
This PR was [automatically generated] to re-execute | ||
the example notebooks for use in the documentation. | ||
[automatically generated]: https://github.com/Econ-ARK/HARK/actions/workflows/execute-notebooks.yml |
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,3 +1,3 @@ | ||
.nbsphinx-gallery { | ||
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); | ||
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); | ||
} |
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
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
Oops, something went wrong.