From ffffa7d19e6eb829e75a26f04357757419f08fec Mon Sep 17 00:00:00 2001 From: Chester Curme Date: Fri, 27 Sep 2024 14:35:50 -0400 Subject: [PATCH] python version as input --- .github/workflows/run_notebooks.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/run_notebooks.yml b/.github/workflows/run_notebooks.yml index 6750612b4850c..f681b024d7bb0 100644 --- a/.github/workflows/run_notebooks.yml +++ b/.github/workflows/run_notebooks.yml @@ -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: @@ -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 @@ -43,7 +47,6 @@ jobs: - name: Prepare notebooks run: | - python docs/scripts/prepare_notebooks_for_ci.py --comment-install-cells - name: Run notebooks