Skip to content

Bump actions/setup-python from 4.5.0 to 4.6.0 #233

Bump actions/setup-python from 4.5.0 to 4.6.0

Bump actions/setup-python from 4.5.0 to 4.6.0 #233

Workflow file for this run

name: Build tutorials (pull requests)
on:
pull_request:
branches:
- main
types:
# We also want this workflow triggered if the 'Run all tutorials' label
# is added or present when PR is updated
- opened
- reopened
- synchronize
- labeled
jobs:
notebooks:
name: "Execute and convert the notebooks to HTML"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v4.6.0
with:
python-version: 3.9
- name: Install dependencies
run: |
sudo apt-get install pandoc
python -m pip install -U pip
python -m pip install -r requirements-dev.txt
# Run all tutorials if the label is present
- name: Run all tutorials
if: contains(github.event.pull_request.labels.*.name, 'Run all tutorials')
run: |
export TUTORIALS_MAIN_BRANCH=origin/main
make executeall
make convertall
# Otherwise, only run tutorials that have been modified
- name: Run only modified tutorials
if: "!contains(github.event.pull_request.labels.*.name, 'Run all tutorials')"
run: |
export TUTORIALS_MAIN_BRANCH=origin/main
make execute
make convert
- name: Name artifact
id: nameartifact
run: |
echo "::set-output name=artifactName::rendered-tutorials"
- uses: actions/upload-artifact@v3
with:
name: ${{ steps.nameartifact.outputs.artifactName }}
path: _build