Skip to content

Commit 8313347

Browse files
committed
add deps
1 parent ef24bd1 commit 8313347

File tree

2 files changed

+17
-12
lines changed

2 files changed

+17
-12
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,11 @@ jobs:
7272
version: "0.9.*"
7373
enable-cache: true
7474
python-version: ${{ env.LATEST_PY_VERSION }}
75+
76+
- name: Install dependencies
77+
run: |
78+
uv sync --extra psycopg
79+
uv pip install pypgstac==${{ env.PGSTAC_VERSION }}
7580
7681
- name: Launch services
7782
run: docker compose up -d tiler-uvicorn
@@ -83,17 +88,17 @@ jobs:
8388

8489
- name: Ingest Stac Items/Collection
8590
run: |
86-
uv run --with "pypgstac==${{ env.PGSTAC_VERSION }}" pypgstac pgready --dsn postgresql://username:[email protected]:5439/postgis
87-
uv run --with "pypgstac==${{ env.PGSTAC_VERSION }}" pypgstac load collections benchmark/stac/collection.json --dsn postgresql://username:[email protected]:5439/postgis --method insert_ignore
88-
uv run --with "pypgstac==${{ env.PGSTAC_VERSION }}" pypgstac load items benchmark/stac/items.json --dsn postgresql://username:[email protected]:5439/postgis --method insert_ignore
91+
uv run pypgstac pgready --dsn postgresql://username:[email protected]:5439/postgis
92+
uv run pypgstac load collections benchmark/stac/collection.json --dsn postgresql://username:[email protected]:5439/postgis --method insert_ignore
93+
uv run pypgstac load items benchmark/stac/items.json --dsn postgresql://username:[email protected]:5439/postgis --method insert_ignore
8994
9095
- name: Sleep for 10 seconds
9196
run: sleep 10s
9297
shell: bash
9398

9499
- name: Run Benchmark
95100
run: |
96-
uv run --group benchmark --with "pypgstac==${{ env.PGSTAC_VERSION }}" pytest .github/workflows/tests/benchmarks.py --benchmark-only --benchmark-columns 'min, max, mean, median' --benchmark-json output.json
101+
uv run --group benchmark pytest .github/workflows/tests/benchmarks.py --benchmark-only --benchmark-columns 'min, max, mean, median' --benchmark-json output.json
97102
98103
- name: Store and benchmark result
99104
uses: benchmark-action/github-action-benchmark@v1

uv.lock

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)