@@ -22,13 +22,13 @@ jobs:
2222 - uses : actions/checkout@v4
2323 with :
2424 persist-credentials : false
25- - uses : actions/setup-python@v5
26- with :
27- python-version : " 3.9"
28- cache : ' pip'
29- cache-dependency-path : ' pyproject.toml'
3025 - name : Install just
3126 uses : extractions/setup-just@v2
27+ - name : Install uv
28+ uses : astral-sh/setup-uv@v5
29+ with :
30+ enable-cache : true
31+ python-version : " 3.9"
3232 - name : Install Python dependencies
3333 run : |
3434 just install
@@ -61,42 +61,21 @@ jobs:
6161 - uses : actions/checkout@v4
6262 with :
6363 persist-credentials : false
64- - if : ${{ matrix.python-version == '3.13t' }}
65- name : Setup free-threaded Python
66- uses :
deadsnakes/[email protected] 67- with :
68- python-version : 3.13
69- nogil : true
70- - if : ${{ matrix.python-version != '3.13t' }}
71- name : Setup Python
72- uses : actions/setup-python@v5
73- with :
74- python-version : ${{ matrix.python-version }}
75- cache : ' pip'
76- cache-dependency-path : ' pyproject.toml'
77- allow-prereleases : true
7864 - name : Install just
7965 uses : extractions/setup-just@v2
66+ - name : Install uv
67+ uses : astral-sh/setup-uv@v5
68+ with :
69+ enable-cache : true
70+ python-version : ${{ matrix.python-version }}
8071 - name : Install dependencies
81- run : |
82- if [[ "${{ matrix.python-version }}" == "3.13t" ]]; then
83- # Just can't be installed on 3.13t, use pytest directly.
84- pip install .
85- pip install -r requirements/test.txt
86- else
87- just install
88- fi
72+ run : just install
8973 - name : Start MongoDB
9074 uses :
supercharge/[email protected] 9175 with :
9276 mongodb-version : 6.0
9377 - name : Run tests
94- run : |
95- if [[ "${{ matrix.python-version }}" == "3.13t" ]]; then
96- pytest -v --durations=5 --maxfail=10
97- else
98- just test
99- fi
78+ run : just test
10079
10180 doctest :
10281 runs-on : ubuntu-latest
@@ -105,24 +84,21 @@ jobs:
10584 - uses : actions/checkout@v4
10685 with :
10786 persist-credentials : false
108- - name : Setup Python
109- uses : actions/setup-python@v5
110- with :
111- python-version : " 3.9"
112- cache : ' pip'
113- cache-dependency-path : ' pyproject.toml'
11487 - name : Install just
11588 uses : extractions/setup-just@v2
89+ - name : Install uv
90+ uses : astral-sh/setup-uv@v5
91+ with :
92+ enable-cache : true
93+ python-version : " 3.9"
11694 - name : Start MongoDB
11795 uses :
supercharge/[email protected] 11896 with :
11997 mongodb-version : ' 8.0.0-rc4'
12098 - name : Install dependencies
121- run : |
122- just install
99+ run : just install
123100 - name : Run tests
124- run : |
125- just docs-test
101+ run : just docs-test
126102
127103 docs :
128104 name : Docs Checks
@@ -131,20 +107,17 @@ jobs:
131107 - uses : actions/checkout@v4
132108 with :
133109 persist-credentials : false
134- - uses : actions/setup-python@v5
110+ - name : Install uv
111+ uses : astral-sh/setup-uv@v5
135112 with :
136- cache : ' pip'
137- cache-dependency-path : ' pyproject.toml'
138- # Build docs on lowest supported Python for furo
139- python-version : ' 3.9'
113+ enable-cache : true
114+ python-version : " 3.9"
140115 - name : Install just
141116 uses : extractions/setup-just@v2
142117 - name : Install dependencies
143- run : |
144- just install
118+ run : just install
145119 - name : Build docs
146- run : |
147- just docs
120+ run : just docs
148121
149122 linkcheck :
150123 name : Link Check
@@ -153,20 +126,17 @@ jobs:
153126 - uses : actions/checkout@v4
154127 with :
155128 persist-credentials : false
156- - uses : actions/setup-python@v5
129+ - name : Install uv
130+ uses : astral-sh/setup-uv@v5
157131 with :
158- cache : ' pip'
159- cache-dependency-path : ' pyproject.toml'
160- # Build docs on lowest supported Python for furo
161- python-version : ' 3.9'
132+ enable-cache : true
133+ python-version : " 3.9"
162134 - name : Install just
163135 uses : extractions/setup-just@v2
164136 - name : Install dependencies
165- run : |
166- just install
137+ run : just install
167138 - name : Build docs
168- run : |
169- just docs-linkcheck
139+ run : just docs-linkcheck
170140
171141 typing :
172142 name : Typing Tests
@@ -178,11 +148,11 @@ jobs:
178148 - uses : actions/checkout@v4
179149 with :
180150 persist-credentials : false
181- - uses : actions/setup-python@v5
151+ - name : Install uv
152+ uses : astral-sh/setup-uv@v5
182153 with :
154+ enable-cache : true
183155 python-version : " ${{matrix.python}}"
184- cache : ' pip'
185- cache-dependency-path : ' pyproject.toml'
186156 - name : Install just
187157 uses : extractions/setup-just@v2
188158 - name : Install dependencies
0 commit comments