Skip to content

verbose testpypi upload #1077

verbose testpypi upload

verbose testpypi upload #1077

Workflow file for this run

name: Tutorials
on:
push:
branches:
- main
pull_request:
branches:
- main
release:
types:
- published
jobs:
check_skip_flags:
name: Check skip flags
runs-on: ubuntu-latest
outputs:
head-commit-message:
${{ steps.get_head_commit_message.outputs.HEAD_COMMIT_MESSAGE }}
steps:
- name: Checkout repo
uses: actions/checkout@v6
with:
ref: ${{ env.GITHUB_SHA }}
- name: Get head commit message
id: get_head_commit_message
run: echo "HEAD_COMMIT_MESSAGE=$(git show -s --format=%s)" >> "$GITHUB_OUTPUT"
notebooks:
name: "Build the notebooks for the docs"
runs-on: ubuntu-latest
needs: check_skip_flags
if:
${{ github.event.pull_request.draft == false &&
!contains(github.event.pull_request.labels.*.name, 'skip docs') &&
!contains(needs.check_skip_flags.outputs.head-commit-message, '[skip docs]') }}
steps:
- uses: actions/checkout@v6
with:
submodules: true
- name: Setup Linux GSL
run: |
sudo apt-get update
sudo apt-get install gsl-bin libgsl0-dev build-essential
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.12"
- name: Install dependencies
run: |
python -m pip install -U pip wheel
python -m pip install ".[tutorials]"
- name: Execute the notebooks
run: |
cd docs
make exectutorials
make execsupporting
- uses: actions/upload-artifact@v7
with:
name: notebooks-for-${{ github.sha }}
path: |
docs/tutorials
docs/supporting
- name: Trigger RTDs build
if: ${{ github.event_name != 'pull_request' }}
uses: dfm/rtds-action@v1.1.0
with:
webhook_url: ${{ secrets.RTDS_WEBHOOK_URL }}
webhook_token: ${{ secrets.RTDS_WEBHOOK_TOKEN }}
commit_ref: ${{ github.ref }}