-
-
Notifications
You must be signed in to change notification settings - Fork 199
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into MoveAddStablePointsRedo
- Loading branch information
Showing
76 changed files
with
4,938 additions
and
1,305 deletions.
There are no files selected for viewing
This file was deleted.
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
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: pre-commit | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
format: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ["3.10"] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install packages | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install ".[dev]" | ||
pip list | ||
- name: Lint | ||
run: pre-commit run --all-files --show-diff-on-failure --color always |
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.