From fd75d50e3ee438cf7993c4425b36f1e6f9976e2c Mon Sep 17 00:00:00 2001 From: Andre Merzky Date: Thu, 24 Oct 2024 10:40:49 +0200 Subject: [PATCH] up --- .github/workflows/docs.yml | 38 ++------------------------ .github/workflows/rtd.yml | 56 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 58 insertions(+), 36 deletions(-) create mode 100644 .github/workflows/rtd.yml diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index eb803c833c..20391142f3 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -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: @@ -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 }} - diff --git a/.github/workflows/rtd.yml b/.github/workflows/rtd.yml new file mode 100644 index 0000000000..7cff1f7f8a --- /dev/null +++ b/.github/workflows/rtd.yml @@ -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 }} +