1919concurrency :
2020 group : ${{ github.head_ref }}
2121 cancel-in-progress : true
22+
23+ env :
24+ python_version : ' 3.11'
25+ java_version : ' 11'
26+ java_distribution : ' temurin'
27+
2228jobs :
2329 fail_if_pull_request_is_draft : # Fails in order to indicate that pull request needs to be marked as ready to review to pass.
2430 if : github.event.pull_request.draft == true
25- runs-on : ubuntu-22.04
31+ runs-on : ubuntu-latest
2632 steps :
2733 - name : Fail if PR is a draft
2834 run : exit 1
2935 pre_ci :
3036 name : Prepare CI environment
3137 if : github.event.pull_request.draft == false # Skip this job and its dependencies if the PR is draft
32- runs-on : ubuntu-22.04
38+ runs-on : ubuntu-latest
3339 steps :
3440 - name : Checkout Project
3541 uses : actions/checkout@v4
@@ -53,20 +59,20 @@ jobs:
5359 validate-gradle-wrapper :
5460 if : " !contains(needs.pre_ci.outputs.commit_message, '[acceptance test skip]')"
5561 needs : pre_ci
56- runs-on : ubuntu-22.04
62+ runs-on : ubuntu-latest
5763 steps :
5864 - uses : actions/checkout@v4
5965 - uses : gradle/actions/wrapper-validation@v3
6066 pack-snapshot :
6167 needs : [ validate-gradle-wrapper ]
62- runs-on : ubuntu-22.04
68+ runs-on : ubuntu-latest
6369 steps :
6470 - uses : actions/checkout@v4
65- - name : Set up JDK 11
71+ - name : Set up JDK ${{ env.java_version }}-${{ env.java_distribution }}
6672 uses : actions/setup-java@v4
6773 with :
68- java-version : ' 11 '
69- distribution : ' temurin '
74+ java-version : ${{ env.java_version }}
75+ distribution : ${{ env.java_distribution }}
7076 - name : Cache Gradle packages
7177 uses : actions/cache@v4
7278 with :
@@ -89,16 +95,16 @@ jobs:
8995 path : output-comparator/build/libs/output-comparator-*-cli.jar
9096 pack-master :
9197 needs : [ validate-gradle-wrapper ]
92- runs-on : ubuntu-22.04
98+ runs-on : ubuntu-latest
9399 steps :
94100 - uses : actions/checkout@v4
95101 with :
96102 ref : master
97- - name : Set up JDK 11
103+ - name : Set up JDK ${{ env.java_version }}-${{ env.java_distribution }}
98104 uses : actions/setup-java@v4
99105 with :
100- java-version : ' 11 '
101- distribution : ' temurin '
106+ java-version : ${{ env.java_version }}
107+ distribution : ${{ env.java_distribution }}
102108 - name : Cache Gradle packages
103109 uses : actions/cache@v4
104110 with :
@@ -117,10 +123,13 @@ jobs:
117123 fetch-urls :
118124 if : " !contains(needs.pre_ci.outputs.commit_message, '[acceptance test skip]')"
119125 needs : pre_ci
120- runs-on : ubuntu-22.04
126+ runs-on : ubuntu-latest
121127 steps :
122128 - name : Checkout repository code
123129 uses : actions/checkout@v4
130+ - uses : actions/setup-python@v5
131+ with :
132+ python-version : ${{ env.python_version }}
124133 - name : Install dependencies
125134 run : |
126135 pip install -r scripts/mobility-database-harvester/requirements.txt
@@ -174,7 +183,7 @@ jobs:
174183 name : reports_${{ env.CONCATENATED_IDS }}
175184 path : ${{ github.sha }}/output
176185 merge-reports-artifacts :
177- runs-on : ubuntu-22.04
186+ runs-on : ubuntu-latest
178187 needs : [ get-reports ]
179188 steps :
180189 - name : Merge Artifacts
@@ -185,7 +194,7 @@ jobs:
185194 delete-merged : true
186195 compare-outputs :
187196 needs : [ merge-reports-artifacts ]
188- runs-on : ubuntu-22.04
197+ runs-on : ubuntu-latest
189198 steps :
190199 - uses : actions/checkout@v4
191200 - name : Download comparator .jar file from previous job
0 commit comments