Skip to content

Commit 48e4438

Browse files
authored
Update noxfile and pip-compile sessions to fix failing workflows (ansible#2260)
* update python version syntax in pip-compile session * change pip-compile names in workflows
1 parent 2e09b53 commit 48e4438

File tree

3 files changed

+20
-27
lines changed

3 files changed

+20
-27
lines changed

.github/workflows/pip-compile-dev.yml

Lines changed: 17 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -22,39 +22,32 @@ jobs:
2222
- base-branch: devel
2323
pr-branch: pip-compile/devel/dev
2424
nox-args: >-
25-
-e 'pip-compile-3.11(formatters)'
26-
'pip-compile-3.11(typing)'
27-
'pip-compile-3.11(static)'
28-
'pip-compile-3.11(spelling)'
29-
'pip-compile-3.11(tag)'
25+
-e 'pip-compile(formatters)'
26+
'pip-compile(typing)'
27+
'pip-compile(static)'
28+
'pip-compile(spelling)'
29+
'pip-compile(tag)'
3030
- base-branch: stable-2.18
3131
pr-branch: pip-compile/stable-2.18/dev
3232
nox-args: >-
33-
-e 'pip-compile-3.11(formatters)'
34-
'pip-compile-3.11(typing)'
35-
'pip-compile-3.11(static)'
36-
'pip-compile-3.11(spelling)'
33+
-e 'pip-compile(formatters)'
34+
'pip-compile(typing)'
35+
'pip-compile(static)'
36+
'pip-compile(spelling)'
3737
- base-branch: stable-2.17
3838
pr-branch: pip-compile/stable-2.17/dev
3939
nox-args: >-
40-
-e 'pip-compile-3.10(formatters)'
41-
'pip-compile-3.10(typing)'
42-
'pip-compile-3.10(static)'
43-
'pip-compile-3.10(spelling)'
40+
-e 'pip-compile(formatters)'
41+
'pip-compile(typing)'
42+
'pip-compile(static)'
43+
'pip-compile(spelling)'
4444
- base-branch: stable-2.16
4545
pr-branch: pip-compile/stable-2.16/dev
4646
nox-args: >-
47-
-e 'pip-compile-3.10(formatters)'
48-
'pip-compile-3.10(typing)'
49-
'pip-compile-3.10(static)'
50-
'pip-compile-3.10(spelling)'
51-
- base-branch: stable-2.15
52-
pr-branch: pip-compile/stable-2.15/dev
53-
nox-args: >-
54-
-e 'pip-compile-3.10(formatters)'
55-
'pip-compile-3.10(typing)'
56-
'pip-compile-3.10(static)'
57-
'pip-compile-3.10(spelling)'
47+
-e 'pip-compile(formatters)'
48+
'pip-compile(typing)'
49+
'pip-compile(static)'
50+
'pip-compile(spelling)'
5851
name: "Refresh dev dependencies"
5952
uses: ./.github/workflows/reusable-pip-compile.yml
6053
with:

.github/workflows/pip-compile-docs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ jobs:
2929
pr-branch: "${{ inputs.pr-branch || 'pip-compile/devel/docs' }}"
3030
nox-args: >-
3131
-e
32-
'pip-compile-3.11(requirements)'
33-
'pip-compile-3.11(requirements-relaxed)'
32+
'pip-compile(requirements)'
33+
'pip-compile(requirements-relaxed)'
3434
reset-branch: "${{ inputs.reset-branch || false }}"
3535
labels: "${{ inputs.labels || 'doc builds,no_backport' }}"
3636
secrets: inherit

noxfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ def lint(session: nox.Session):
155155
)
156156

157157

158-
@nox.session(name="pip-compile", python=["3.11"])
158+
@nox.session(name="pip-compile", python="3.11")
159159
@nox.parametrize(["req"], requirements_files, requirements_files)
160160
def pip_compile(session: nox.Session, req: str):
161161
"""

0 commit comments

Comments
 (0)