Skip to content

Commit 914f1e5

Browse files
authored
fix: inconsistent test runs for community modules (#497)
- Fixed inconsistencies for community module test runs: using all supported Python versions - Pinned runner version (best practice) fixes #482
1 parent 472b2c2 commit 914f1e5

File tree

6 files changed

+9
-10
lines changed

6 files changed

+9
-10
lines changed

.github/workflows/ci-community.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ on:
1414

1515
jobs:
1616
track-modules:
17-
runs-on: ubuntu-latest
17+
runs-on: ubuntu-22.04
1818
steps:
1919
- name: Checkout contents
2020
uses: actions/checkout@v4
@@ -38,14 +38,14 @@ jobs:
3838
outputs:
3939
changed_modules: ${{ steps.compute-changes.outputs.computed_modules }}
4040
test:
41+
runs-on: ubuntu-22.04
4142
needs: [track-modules]
4243
if: ${{ needs.track-modules.outputs.changed_modules != '[]' }}
4344
strategy:
4445
fail-fast: false
4546
matrix:
46-
python-version: [ "3.11" ]
47+
python-version: ["3.9", "3.10", "3.11", "3.12"]
4748
module: ${{ fromJSON(needs.track-modules.outputs.changed_modules) }}
48-
runs-on: ubuntu-latest
4949
steps:
5050
- name: Checkout contents
5151
uses: actions/checkout@v4

.github/workflows/ci-core.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,11 @@ on:
1010

1111
jobs:
1212
test:
13+
runs-on: ubuntu-22.04
1314
strategy:
1415
fail-fast: false
1516
matrix:
16-
os: [ ubuntu ]
1717
python-version: ["3.9", "3.10", "3.11", "3.12"]
18-
runs-on: ${{ matrix.os }}-latest
1918
steps:
2019
- uses: actions/checkout@v4
2120
- name: Set up Python

.github/workflows/ci-lint.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010

1111
jobs:
1212
python:
13-
runs-on: ubuntu-latest
13+
runs-on: ubuntu-22.04
1414
steps:
1515
- uses: actions/checkout@v4
1616
- name: Setup Env

.github/workflows/docs.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
jobs:
1010
build:
11-
runs-on: ubuntu-latest
11+
runs-on: ubuntu-22.04
1212
steps:
1313
- uses: actions/checkout@v4
1414
- name: Set up Python

.github/workflows/pr-lint.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ permissions:
1313
jobs:
1414
validate:
1515
name: validate-pull-request-title
16-
runs-on: ubuntu-latest
16+
runs-on: ubuntu-22.04
1717
steps:
1818
- name: validate pull request title
1919
uses: kontrolplane/pull-request-title-validator@ab2b54babb5337246f4b55cf8e0a1ecb0575e46d #v1

.github/workflows/release-please.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66

77
jobs:
88
release:
9-
runs-on: ubuntu-latest
9+
runs-on: ubuntu-22.04
1010
outputs:
1111
release_created: ${{ steps.track-release.outputs.release_created }}
1212
steps:
@@ -16,7 +16,7 @@ jobs:
1616
manifest-file: .github/.release-please-manifest.json
1717
config-file: .github/release-please-config.json
1818
publish:
19-
runs-on: ubuntu-latest
19+
runs-on: ubuntu-22.04
2020
environment: release
2121
permissions:
2222
id-token: write

0 commit comments

Comments
 (0)