Skip to content

Commit

Permalink
ci pip-compile: specify the correct Python version for each branch (#…
Browse files Browse the repository at this point in the history
…2304)

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 authored Dec 16, 2024
1 parent 538390d commit 0fa9e78
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .github/workflows/pip-compile-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,34 +27,39 @@ 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:
message: "ci: refresh dev dependencies"
base-branch: "${{ matrix.base-branch }}"
pr-branch: "${{ matrix.pr-branch }}"
nox-args: "${{ matrix.nox-args }}"
python-versions: "${{ matrix.python-versions }}"
reset-branch: "${{ inputs.reset-branch || false }}"
labels: "${{ inputs.labels || 'no_backport,tooling' }}"
secrets: inherit
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: true
jobs:
refresh:
runs-on: ubuntu-latest
Expand All @@ -55,7 +58,7 @@ jobs:
- name: Set up nox
uses: wntrblm/[email protected]
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 0fa9e78

Please sign in to comment.