From bacbbfd1485a1545b1230ab13554f06c5933ecb1 Mon Sep 17 00:00:00 2001 From: Maxwell G Date: Mon, 16 Dec 2024 14:44:50 -0600 Subject: [PATCH] ci pip-compile: specify the correct Python version for branch CI jobs for stable-2.18 and stable-2.17 were failing before this; they use a different Python version for lockfile generation that was not incidentally installed like Python 3.11. --- .github/workflows/pip-compile-dev.yml | 4 ++++ .github/workflows/pip-compile-docs.yml | 1 + .github/workflows/reusable-pip-compile.yml | 5 ++++- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pip-compile-dev.yml b/.github/workflows/pip-compile-dev.yml index 56c23b94e65..b8b9fe75078 100644 --- a/.github/workflows/pip-compile-dev.yml +++ b/.github/workflows/pip-compile-dev.yml @@ -27,6 +27,7 @@ jobs: 'pip-compile(static)' 'pip-compile(spelling)' 'pip-compile(tag)' + python-versions: "3.11" - base-branch: stable-2.18 pr-branch: pip-compile/stable-2.18/dev nox-args: >- @@ -34,6 +35,7 @@ jobs: 'pip-compile(typing)' 'pip-compile(static)' 'pip-compile(spelling)' + python-versions: "3.11" - base-branch: stable-2.17 pr-branch: pip-compile/stable-2.17/dev nox-args: >- @@ -41,6 +43,7 @@ jobs: 'pip-compile(typing)' 'pip-compile(static)' 'pip-compile(spelling)' + python-versions: "3.10" - base-branch: stable-2.16 pr-branch: pip-compile/stable-2.16/dev nox-args: >- @@ -48,6 +51,7 @@ jobs: 'pip-compile(typing)' 'pip-compile(static)' 'pip-compile(spelling)' + python-versions: "3.10" name: "Refresh dev dependencies" uses: ./.github/workflows/reusable-pip-compile.yml with: diff --git a/.github/workflows/pip-compile-docs.yml b/.github/workflows/pip-compile-docs.yml index 51755865e69..a1835f1bd18 100644 --- a/.github/workflows/pip-compile-docs.yml +++ b/.github/workflows/pip-compile-docs.yml @@ -33,4 +33,5 @@ jobs: 'pip-compile(requirements-relaxed)' reset-branch: "${{ inputs.reset-branch || false }}" labels: "${{ inputs.labels || 'doc builds,no_backport' }}" + python-versions: "3.11" secrets: inherit diff --git a/.github/workflows/reusable-pip-compile.yml b/.github/workflows/reusable-pip-compile.yml index 77533cf064d..3c79b197913 100644 --- a/.github/workflows/reusable-pip-compile.yml +++ b/.github/workflows/reusable-pip-compile.yml @@ -32,6 +32,9 @@ name: "Refresh pinned dependencies" labels: type: string default: "" + python-versions: + type: string + required: truee jobs: refresh: runs-on: ubuntu-latest @@ -55,7 +58,7 @@ jobs: - name: Set up nox uses: wntrblm/nox@2024.10.09 with: - python-versions: "3.9" + python-versions: "${{ inputs.python-versions }}" - name: Set up git committer run: | hacking/get_bot_user.sh "ansible-documentation-bot" "Ansible Documentation Bot"