Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
andre-merzky committed Oct 24, 2024
1 parent f411061 commit fd75d50
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 36 deletions.
38 changes: 2 additions & 36 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,10 @@ name: 'Test Jupyter notebooks'
on:
push:
branches:
- 'devel'
- 'devel*'
pull_request:
branches:
- 'devel'
release:
- 'master'
- 'devel*'

# This allows a subsequently queued workflow run to interrupt previous runs
concurrency:
Expand Down Expand Up @@ -50,35 +48,3 @@ jobs:
notebook-name: ${{ matrix.tutorial }}
notebook-path: 'tutorials'

notebooks:
name: "Build the notebooks for the docs"
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 }}

56 changes: 56 additions & 0 deletions .github/workflows/rtd.yml
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 }}

0 comments on commit fd75d50

Please sign in to comment.