Skip to content

Workflow file for this run

name: autogenerate docs from tutorials
on:
# Triggers the workflow on push but only for the main branch
push:
branches: [ workflow_trials ]
# paths: ['**.ipynb']
jobs:
docs-from-tutorials:
runs-on: ubuntu-latest
defaults:
run:
working-directory: docs/tutorial
steps:
# Check out repo and set up Python
- name: Check out the repository
uses: actions/checkout@v4
with:
lfs: true
- name: "Setup Python, Poetry and Dependencies"
uses: packetcoders/action-setup-cache-python-poetry@main
with:
python-version: 3.8
poetry-version: 1.2.2
# Generates and commits a requirements.txt used by readthedocs
# Missing is to run the notebooks for now!
# Add mpes package for benchmarking
- name: run python script
run: poetry add mpes
- name: run python script
run: execute python renaming.py
- name: remove ipynbs
run: rm *.ipynb
- name: Commit changes
uses: EndBug/add-and-commit@v9
with:
default_author: github_actions
message: 'Updating tutorial rsts for docs'
add: 'sed/docs/tutorial/'