Skip to content

Commit 9f870eb

Browse files
committed
ci: group checks by Python version, sort by most recent
1 parent 2a7cbea commit 9f870eb

File tree

7 files changed

+14
-14
lines changed

7 files changed

+14
-14
lines changed

.github/workflows/python.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ jobs:
1313
strategy:
1414
fail-fast: false
1515
matrix:
16+
python-version: ["3.11", "3.10", "3.9", "3.8", "3.7"]
1617
# ubuntu-latest is being moved from ubuntu-18.04 to ubuntu-20.04
1718
# See https://github.com/actions/virtual-environments/issues/1816
1819
os: [ubuntu-latest, windows-latest, macos-latest]
19-
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
2020
runs-on: ${{ matrix.os }}
2121
env:
2222
PYTHONUNBUFFERED: 1

docs/ideas/yaml/contains.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
[[".github/workflows/python.yaml".contains]]
44
__jmespath = "jobs.build.strategy.matrix"
55
os = ["ubuntu-latest", "macos-latest", "windows-latest"]
6-
"python-version" = ["3.7", "3.8", "3.9", "3.10", "3.11"]
6+
"python-version" = ["3.11", "3.10", "3.9", "3.8", "3.7"]
77

88
# 3. Same as item 4 on "jmespath-on-section.toml", but with a different syntax.
99
[[".github/workflows/python.yaml".contains]]
@@ -56,7 +56,7 @@ __yaml = "- uses: actions/checkout@v2"
5656
[[".github/workflows/python.yaml".contains_sorted]]
5757
__jmespath = "jobs.build.strategy.matrix"
5858
os = ["ubuntu-latest", "macos-latest", "windows-latest"]
59-
"python-version" = ["3.7", "3.8", "3.9", "3.10", "3.11"]
59+
"python-version" = ["3.11", "3.10", "3.9", "3.8", "3.7"]
6060

6161
[[".github/workflows/python.yaml".contains_sorted]]
6262
__jmespath = "jobs.build"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# This should be the result of a parent style including all the styles in this directory
22
[".github/workflows/python.yaml".jobs.build.strategy.matrix]
33
os = ["ubuntu-latest", "macos-latest", "windows-latest"]
4-
"python-version" = ["3.7", "3.8", "3.9", "3.10", "3.11"]
4+
"python-version" = ["3.11", "3.10", "3.9", "3.8", "3.7"]

src/nitpick/resources/python/github-workflow.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ fail-fast = false
1111

1212
[".github/workflows/python.yaml".jobs.build.strategy.matrix]
1313
os = ["ubuntu-latest", "windows-latest", "macos-latest"]
14-
python-version = ["3.7", "3.8", "3.9", "3.10", "3.11"]
14+
python-version = ["3.11", "3.10", "3.9", "3.8", "3.7"]
1515

1616
[".github/workflows/python.yaml".jobs.build]
1717
name = "${{ matrix.python-version }} ${{ matrix.os }}"

tests/test_builtin/python/github-workflow/.github/workflows/python.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ jobs:
1111
- windows-latest
1212
- macos-latest
1313
python-version:
14-
- '3.7'
15-
- '3.8'
16-
- '3.9'
17-
- '3.10'
1814
- '3.11'
15+
- '3.10'
16+
- '3.9'
17+
- '3.8'
18+
- '3.7'
1919
name: ${{ matrix.python-version }} ${{ matrix.os }}
2020
runs-on: ${{ matrix.os }}
2121
env:

tests/test_yaml/new-desired.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ with = {"python-version" = "${{ matrix.python-version }}"}
1212

1313
[".github/workflows/python.yaml".jobs.build.strategy.matrix]
1414
os = ["ubuntu-latest", "macos-latest", "windows-latest"]
15-
"python-version" = ["3.7", "3.8", "3.9", "3.10", "3.11"]
15+
"python-version" = ["3.11", "3.10", "3.9", "3.8", "3.7"]
1616

1717
[".github/workflows/python.yaml".jobs.build]
1818
"runs-on" = "${{ matrix.os }}"

tests/test_yaml/new-expected.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ jobs:
1313
- macos-latest
1414
- windows-latest
1515
python-version:
16-
- '3.7'
17-
- '3.8'
18-
- '3.9'
19-
- '3.10'
2016
- '3.11'
17+
- '3.10'
18+
- '3.9'
19+
- '3.8'
20+
- '3.7'
2121
runs-on: ${{ matrix.os }}

0 commit comments

Comments
 (0)