File tree Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -182,16 +182,20 @@ jobs:
182182 needs : [buildpg, linux_x86_64]
183183 runs-on : ubuntu-latest
184184 env :
185- UV_SYSTEM_PYTHON : 1
185+ PGHOST : localhost
186+ UV_FROZEN : true
187+ UV_FIND_LINKS : /tmp/wheels
188+ UV_SYSTEM_PYTHON : true
189+ UV_PROJECT_ENVIRONMENT : /home/runner/work/pgstac/pgstac/src/pypgstac/.venv
190+ VIRTUAL_ENVIRONMENT : /home/runner/work/pgstac/pgstac/src/pypgstac/.venv
191+
186192 services :
187193 postgres :
188194 image : ghcr.io/stac-utils/pgstac-postgres:latest
189195 env :
190196 POSTGRES_PASSWORD : postgres
191197 POSTGRES_USER : postgres
192198 POSTGRES_DATABASE : postgres
193- ports :
194- - 5432:5432
195199 options : >-
196200 --health-cmd pg_isready
197201 --health-interval 10s
@@ -212,15 +216,15 @@ jobs:
212216 - name : Install pypgstac
213217 run : |
214218 cd /home/runner/work/pgstac/pgstac/src/pypgstac
215- uv python install 3.10
219+ uv venv
220+ source $UV_PROJECT_ENVIRONMENT/bin/activate
216221 uv pip install psycopg[binary] psycopg-pool
217- uv pip compile pyproject.toml -o /tmp/requirements.txt --extra test --extra dev
218- uv pip install /tmp/requirements.txt
222+ uv sync --frozen --no-install-project --extra test --extra dev
219223 uv pip install --offline --find-links /tmp/wheels pypgstac
220224
221225
222226 - name : Run tests
223227 run : |
224228 cd /home/runner/work/pgstac/pgstac/src/pypgstac
225- export PGHOST=localhost
229+ source $UV_PROJECT_ENVIRONMENT/bin/activate
226230 $SCRIPTS/test
You can’t perform that action at this time.
0 commit comments