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+
1522 run-tests-and-coverage :
1623 name : " Run nox for tests and coverage"
24+ needs : " set-statics"
1725 runs-on : " ${{ matrix.os }}"
1826 strategy :
1927 fail-fast : false
2028 matrix :
2129 os :
22- - " ubuntu-26.04 "
30+ - " ${{ needs.set-statics.outputs.linux-version }} "
2331 python-version :
2432 - " 3.11"
2533 - " 3.12"
3442 - name : " Install the latest version of uv"
3543 uses : " astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b"
3644 with :
37- version : " latest "
45+ version : " ${{ needs.set-statics.outputs.uv-version }} "
3846 python-version : " ${{ matrix.python-version }}"
3947 enable-cache : true
4048
@@ -51,16 +59,16 @@ jobs:
5159
5260 coverage-compile :
5361 name : " coverage compile"
54- needs : " run-tests-and-coverage"
55- runs-on : " ubuntu-latest "
62+ needs : ["set-statics", " run-tests-and-coverage"]
63+ runs-on : " ${{ needs.set-statics.outputs.linux-version }} "
5664 steps :
5765 - name : " Repo checkout"
5866 uses : " actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd"
5967
6068 - name : " Install the latest version of uv"
6169 uses : " astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b"
6270 with :
63- version : " latest "
71+ version : " ${{ needs.set-statics.outputs.uv-version }} "
6472 enable-cache : true
6573
6674 - name : " Download coverage artifacts"
@@ -79,15 +87,16 @@ jobs:
7987
8088 linters-and-formatters :
8189 name : " linters and formatters"
82- runs-on : " ubuntu-latest"
90+ needs : " set-statics"
91+ runs-on : " ${{ needs.set-statics.outputs.linux-version }}"
8392 steps :
8493 - name : " Repo checkout"
8594 uses : " actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd"
8695
8796 - name : " Install the latest version of uv"
8897 uses : " astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b"
8998 with :
90- version : " latest "
99+ version : " ${{ needs.set-statics.outputs.uv-version }} "
91100 enable-cache : true
92101
93102 - name : " Run linters and formatters"
0 commit comments