1313permissions :
1414 contents : read
1515
16+ env :
17+ # Use the uv from astral-sh/setup-uv; without an explicit path hatch
18+ # bootstraps its own (pyapp) uv, which fails on non-3.12 runners.
19+ HATCH_ENV_TYPE_VIRTUAL_UV_PATH : uv
20+
1621concurrency :
1722 group : ${{ github.workflow }}-${{ github.ref }}
1823 cancel-in-progress : true
@@ -60,10 +65,10 @@ jobs:
6065 with :
6166 python-version : ${{ matrix.python-version }}
6267 cache : ' pip'
68+ - name : Install uv
69+ uses : astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
6370 - name : Install Hatch
64- uses : pypa/hatch@257e27e51a6a5616ed08a39a408a21c35c9931bc
65- with :
66- version : ' 1.16.5'
71+ run : python -m pip install hatch==1.16.5
6772 - name : Set Up Hatch Env
6873 env :
6974 HATCH_ENV : test.py${{ matrix.python-version }}-${{ matrix.dependency-set }}
7883 hatch env run --env "$HATCH_ENV" run-coverage
7984 - name : Upload coverage
8085 if : ${{ matrix.dependency-set == 'optional' && matrix.os == 'ubuntu-latest' }}
81- uses : codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v6.0.0
86+ uses : codecov/codecov-action@e79a6962e0d4c0c17b229090214935d2e33f8354 # v6.0.1
8287 with :
8388 token : ${{ secrets.CODECOV_TOKEN }}
8489 flags : tests
@@ -109,10 +114,10 @@ jobs:
109114 with :
110115 python-version : ${{ matrix.python-version }}
111116 cache : ' pip'
117+ - name : Install uv
118+ uses : astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
112119 - name : Install Hatch
113- uses : pypa/hatch@257e27e51a6a5616ed08a39a408a21c35c9931bc
114- with :
115- version : ' 1.16.5'
120+ run : python -m pip install hatch==1.16.5
116121 - name : Set Up Hatch Env
117122 env :
118123 HATCH_ENV : ${{ matrix.dependency-set }}
@@ -125,7 +130,7 @@ jobs:
125130 run : |
126131 hatch env run --env "$HATCH_ENV" run-coverage
127132 - name : Upload coverage
128- uses : codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v6.0.0
133+ uses : codecov/codecov-action@e79a6962e0d4c0c17b229090214935d2e33f8354 # v6.0.1
129134 with :
130135 token : ${{ secrets.CODECOV_TOKEN }}
131136 flags : tests
@@ -144,10 +149,10 @@ jobs:
144149 with :
145150 python-version : ' 3.13'
146151 cache : ' pip'
152+ - name : Install uv
153+ uses : astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
147154 - name : Install Hatch
148- uses : pypa/hatch@257e27e51a6a5616ed08a39a408a21c35c9931bc
149- with :
150- version : ' 1.16.5'
155+ run : python -m pip install hatch==1.16.5
151156 - name : Set Up Hatch Env
152157 run : |
153158 hatch run doctest:pip list
@@ -168,10 +173,10 @@ jobs:
168173 with :
169174 python-version : ' 3.13'
170175 cache : ' pip'
176+ - name : Install uv
177+ uses : astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
171178 - name : Install Hatch
172- uses : pypa/hatch@257e27e51a6a5616ed08a39a408a21c35c9931bc
173- with :
174- version : ' 1.16.5'
179+ run : python -m pip install hatch==1.16.5
175180 - name : Run Benchmarks
176181 run : |
177182 hatch env run --env "test.py3.13-minimal" run-benchmark
0 commit comments