-
-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ENH: Test Execution for Google Collab #441
Merged
Merged
Changes from 11 commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
167dc0e
Add collab testing
kp992 741a970
fix
kp992 abe7ef6
Update .github/workflows/collab.yml
mmcky 32fdadf
add sphinx-proof
mmcky 29e2605
enable build cache
mmcky 0555bc0
Merge branch 'main' into collab_test
mmcky 3e1148e
FIX: fix import
mmcky b6c5bef
FIX: pandas relaod
mmcky 90c9831
Revert "FIX: pandas relaod"
mmcky 3b9dd21
FIX: update syntax
mmcky ef7b354
pin pandas in CI
kp992 cba2824
Revert "pin pandas in CI"
mmcky dd599be
fetch latest tag
mmcky 700220a
check docker env
mmcky e60bad4
use some tag
kp992 e8a7143
remove tag
kp992 63d8503
try different approach to check version
kp992 0a5716b
hide cell and add comment
mmcky File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: Build Project on Google Collab (Execution) | ||
on: [pull_request] | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest-m | ||
container: | ||
image: docker://us-docker.pkg.dev/colab-images/public/runtime | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
- name: Check python version | ||
shell: bash -l {0} | ||
run: | | ||
python --version | ||
- name: Display Pip Versions | ||
shell: bash -l {0} | ||
run: pip list | ||
- name: Download "build" folder (cache) | ||
uses: dawidd6/action-download-artifact@v3 | ||
with: | ||
workflow: cache.yml | ||
branch: main | ||
name: build-cache | ||
path: _build | ||
# Install build software | ||
- name: Install Build Software | ||
shell: bash -l {0} | ||
run: | | ||
pip install pandas==2.1.4 jupyter-book==0.15.1 docutils==0.17.1 quantecon-book-theme==0.7.1 sphinx-tojupyter==0.3.0 sphinxext-rediraffe==0.2.7 sphinx-exercise==0.4.1 sphinxcontrib-youtube==1.1.0 sphinx-togglebutton==0.3.1 arviz==0.13.0 sphinx_proof==0.1.3 | ||
# Build of HTML (Execution Testing) | ||
- name: Build HTML | ||
shell: bash -l {0} | ||
run: | | ||
jb build lectures --path-output ./ -n -W --keep-going | ||
- name: Upload Execution Reports | ||
uses: actions/upload-artifact@v4 | ||
if: failure() | ||
with: | ||
name: execution-reports | ||
path: _build/html/reports | ||
- name: Preview Deploy to Netlify | ||
uses: nwtgck/actions-netlify@v2 | ||
with: | ||
publish-dir: '_build/html/' | ||
production-branch: main | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
deploy-message: "Preview Deploy from GitHub Actions" | ||
env: | ||
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} | ||
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} |
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can be removed now right?