Skip to content

Commit

Permalink
python version as input
Browse files Browse the repository at this point in the history
  • Loading branch information
ccurme committed Sep 27, 2024
1 parent 67df944 commit ffffa7d
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/run_notebooks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,15 @@ name: Run notebooks

on:
workflow_dispatch:
inputs:
python_version:
description: 'Python version'
required: false
default: '3.11'
schedule:
- cron: '0 13 * * *'

env:
PYTHON_VERSION: "3.11"
POETRY_VERSION: "1.7.1"

jobs:
Expand All @@ -20,7 +24,7 @@ jobs:
- name: Set up Python + Poetry ${{ env.POETRY_VERSION }}
uses: "./.github/actions/poetry_setup"
with:
python-version: ${{ env.PYTHON_VERSION }}
python-version: ${{ github.event.inputs.python_version || '3.11' }}
poetry-version: ${{ env.POETRY_VERSION }}
working-directory: ${{ inputs.working-directory }}
cache-key: run-notebooks
Expand All @@ -43,7 +47,6 @@ jobs:
- name: Prepare notebooks
run: |
python docs/scripts/prepare_notebooks_for_ci.py --comment-install-cells
- name: Run notebooks
Expand Down

0 comments on commit ffffa7d

Please sign in to comment.