1212 - " main"
1313
1414jobs :
15+ set-statics :
16+ name : " Set static values"
17+ runs-on : " ubuntu-slim"
18+ outputs :
19+ linux-version : " ubuntu-26.04"
20+ uv-version : " 0.11.23"
21+
22+ steps :
23+ - name : " Set Statics"
24+ run : echo ""
25+
1526 run-tests-and-coverage :
1627 name : " Run nox for tests and coverage"
28+ needs : " set-statics"
1729 runs-on : " ${{ matrix.os }}"
1830 strategy :
1931 fail-fast : false
2032 matrix :
2133 os :
22- - " ubuntu-26.04 "
34+ - " ${{ needs.set-statics.outputs.linux-version }} "
2335 python-version :
2436 - " 3.11"
2537 - " 3.12"
3446 - name : " Install the latest version of uv"
3547 uses : " astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b"
3648 with :
37- version : " latest "
49+ version : " ${{ needs.set-statics.outputs.uv-version }} "
3850 python-version : " ${{ matrix.python-version }}"
3951 enable-cache : true
4052
@@ -51,16 +63,16 @@ jobs:
5163
5264 coverage-compile :
5365 name : " coverage compile"
54- needs : " run-tests-and-coverage"
55- runs-on : " ubuntu-latest "
66+ needs : ["set-statics", " run-tests-and-coverage"]
67+ runs-on : " ${{ needs.set-statics.outputs.linux-version }} "
5668 steps :
5769 - name : " Repo checkout"
5870 uses : " actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd"
5971
6072 - name : " Install the latest version of uv"
6173 uses : " astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b"
6274 with :
63- version : " latest "
75+ version : " ${{ needs.set-statics.outputs.uv-version }} "
6476 enable-cache : true
6577
6678 - name : " Download coverage artifacts"
@@ -79,15 +91,16 @@ jobs:
7991
8092 linters-and-formatters :
8193 name : " linters and formatters"
82- runs-on : " ubuntu-latest"
94+ needs : " set-statics"
95+ runs-on : " ${{ needs.set-statics.outputs.linux-version }}"
8396 steps :
8497 - name : " Repo checkout"
8598 uses : " actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd"
8699
87100 - name : " Install the latest version of uv"
88101 uses : " astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b"
89102 with :
90- version : " latest "
103+ version : " ${{ needs.set-statics.outputs.uv-version }} "
91104 enable-cache : true
92105
93106 - name : " Run linters and formatters"
0 commit comments