Support for optional parameters (#297) #1169
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
name: Executing Notebook | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
env: | |
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
container: ghcr.io/dsavchenko/heasoft-container/heasoft:6.34docker0.99-python-2e32ba2 | |
steps: | |
- uses: actions/checkout@v4 | |
#- name: Sphinx Docs build with ReadTheDocs Docker | |
# uses: DavidLeoni/[email protected] | |
# with: | |
# RTD_PRJ_NAME: oda-api | |
# GIT_URL: https://github.com/${{ github.repository }}.git | |
# GIT_TAG: ${{ env.GIT_TAG }} | |
# VERSION: ${{ env.VERSION }} | |
# REQUIREMENTS: requirements.txt | |
# LANGUAGE: ${{ env.LANGUAGE }} | |
# RTD_HTML_SINGLE: false | |
# RTD_HTML_EXT: false | |
- name: Run Tutorial Notebooks | |
id: nb | |
run: | | |
set +e | |
env | |
which python | |
pip install --upgrade pip | |
pip install wheel | |
pip install papermill jupyter_client 'numpy<2.0' oda-api>=1.1.1 nbconvert scipy --upgrade --ignore-installed | |
# pip install 'git+https://github.com/integral-observatory/astroquery.git#egg=astroquery' | |
export HOME_OVERRRIDE=/tmp/home | |
mkdir -pv /tmp/home | |
papermill doc/source/user_guide/AsynchronousAPI.ipynb doc/source/user_guide/AsynchronousAPI-output.ipynb | |
echo "exit_code=$?" >> $GITHUB_OUTPUT | |
jupyter nbconvert --to html doc/source/user_guide/AsynchronousAPI-output.ipynb | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: AsynchronousAPI-output.html | |
path: doc/source/user_guide/AsynchronousAPI-output.html | |
- name: Determine nb execution failure | |
run: | | |
exit ${{ steps.nb.outputs.exit_code }} |