-
Notifications
You must be signed in to change notification settings - Fork 23
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
1 parent
f411061
commit fd75d50
Showing
2 changed files
with
58 additions
and
36 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 |
---|---|---|
@@ -0,0 +1,56 @@ | ||
name: 'Test Jupyter notebooks' | ||
|
||
# **What**: runs all the notebooks of RP documentation | ||
# **Why** : integration testing of RADICAL-Pilot on GNU/Linux localhost; | ||
# make sure that the documentation works for the current | ||
# RADICAL-Pilot release | ||
# **Who** : Docs content and testing. | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'devel*' | ||
pull_request: | ||
branches: | ||
- 'devel*' | ||
- 'master*' | ||
|
||
# This allows a subsequently queued workflow run to interrupt previous runs | ||
concurrency: | ||
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}' | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
|
||
rtd: | ||
name: "Build documentation" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.12 | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install -U pip | ||
python -m pip install -r requirements-docs-ci.txt | ||
- name: Execute the notebooks | ||
run: | | ||
sphinx-build -M html docs/source docs/build | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: notebooks-for-${{ github.sha }} | ||
path: docs/build | ||
|
||
- name: Trigger RTDs build | ||
uses: dfm/rtds-action@v1 | ||
with: | ||
webhook_url: ${{ secrets.RTD_URL }} | ||
webhook_token: ${{ secrets.RTD_TOKEN }} | ||
commit_ref: ${{ github.ref }} | ||
|