Skip to content

Commit

Permalink
ci pip-compile: specify the correct Python version for branch
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
gotmax23 committed Dec 16, 2024
1 parent 538390d commit bacbbfd
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/pip-compile-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,27 +27,31 @@ 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: >-
-e 'pip-compile(formatters)'
'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: >-
-e 'pip-compile(formatters)'
'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: >-
-e 'pip-compile(formatters)'
'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:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/pip-compile-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 4 additions & 1 deletion .github/workflows/reusable-pip-compile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ name: "Refresh pinned dependencies"
labels:
type: string
default: ""
python-versions:
type: string
required: truee
jobs:
refresh:
runs-on: ubuntu-latest
Expand All @@ -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"
Expand Down

0 comments on commit bacbbfd

Please sign in to comment.