@@ -33,25 +33,23 @@ jobs:
33
33
- macos-latest
34
34
35
35
steps :
36
+ - uses : actions/checkout@v4
37
+ with :
38
+ fetch-depth : 0
36
39
- name : Install the latest version of uv
37
40
uses : astral-sh/setup-uv@v3
38
41
with :
39
42
enable-cache : true
43
+ cache-dependency-glob : " pyproject.toml"
40
44
github-token : ${{ secrets.GITHUB_TOKEN }}
41
- - name : Setup python hatch
42
- uses : actions/setup-python@v5
43
- with :
44
- python-version : " 3.12 "
45
+ - name : Add .local/bin to Windows PATH
46
+ if : runner.os == 'Windows'
47
+ shell : bash
48
+ run : echo "$USERPROFILE/.local/bin" >> $GITHUB_PATH
45
49
- name : install hatch
46
- run : uv pip install --system --python 3.12 hatch
47
- - name : Setup python for test ${{ matrix.py }}
48
- uses : actions/setup-python@v5
49
- with :
50
- python-version : ${{ matrix.py }}
51
- allow-prereleases : true
52
- - uses : actions/checkout@v4
53
- with :
54
- fetch-depth : 0
50
+ run : uv tool install --python-preference only-managed --python 3.13 hatch
51
+ - name : install Python
52
+ run : uv python install --python-preference only-managed ${{ matrix.py }}
55
53
- name : Pick environment to run
56
54
run : |
57
55
import codecs; import os
@@ -92,20 +90,17 @@ jobs:
92
90
steps :
93
91
- name : Let us have colors
94
92
run : echo "FORCE_COLOR=true" >> "$GITHUB_ENV"
93
+ - uses : actions/checkout@v4
94
+ with :
95
+ fetch-depth : 0
95
96
- name : Install the latest version of uv
96
97
uses : astral-sh/setup-uv@v3
97
98
with :
98
99
enable-cache : true
100
+ cache-dependency-glob : " pyproject.toml"
99
101
github-token : ${{ secrets.GITHUB_TOKEN }}
100
- - name : Setup python hatch
101
- uses : actions/setup-python@v5
102
- with :
103
- python-version : " 3.12"
104
102
- name : install hatch
105
- run : uv pip install --system --python 3.12 hatch
106
- - uses : actions/checkout@v4
107
- with :
108
- fetch-depth : 0
103
+ run : uv tool install --python-preference only-managed --python 3.13 hatch
109
104
- name : Setup coverage tool
110
105
run : |
111
106
hatch -v env create coverage
@@ -139,20 +134,21 @@ jobs:
139
134
- { "name": "docs", "target": "build" }
140
135
- { "name": "readme", "target": "run" }
141
136
steps :
137
+ - uses : actions/checkout@v4
138
+ with :
139
+ fetch-depth : 0
142
140
- name : Install the latest version of uv
143
141
uses : astral-sh/setup-uv@v3
144
142
with :
145
143
enable-cache : true
144
+ cache-dependency-glob : " pyproject.toml"
146
145
github-token : ${{ secrets.GITHUB_TOKEN }}
147
- - name : Setup python hatch
148
- uses : actions/setup-python@v5
149
- with :
150
- python-version : " 3.12 "
146
+ - name : Add .local/bin to Windows PATH
147
+ if : runner.os == 'Windows'
148
+ shell : bash
149
+ run : echo "$USERPROFILE/.local/bin" >> $GITHUB_PATH
151
150
- name : install hatch
152
- run : uv pip install --system --python 3.12 hatch
153
- - uses : actions/checkout@v4
154
- with :
155
- fetch-depth : 0
151
+ run : uv tool install --python-preference only-managed --python 3.13 hatch
156
152
- name : Setup ${{ matrix.env.name }}
157
153
run : |
158
154
hatch -v env create ${{ matrix.env.name }}
0 commit comments