Skip to content

Commit

Permalink
ci
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristianBeilschmidt committed Dec 27, 2024
1 parent 78829f7 commit 48075c1
Showing 1 changed file with 34 additions and 1 deletion.
35 changes: 34 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,11 @@ jobs:
- name: Type-check tests
run: |
python -m mypy tests
- name: Pre-build Geo Engine
run: |
cargo build --locked
cargo build --locked --bin geoengine-cli
working-directory: backend
- name: Test
run: pytest
env:
Expand All @@ -103,6 +108,21 @@ jobs:
check-min-version:
runs-on: ubuntu-22.04

services:
postgres:
image: postgis/postgis
env:
POSTGRES_USER: geoengine
POSTGRES_PASSWORD: geoengine
POSTGRES_DB: geoengine
ports:
- 5432:5432
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5

defaults:
run:
working-directory: library

env:
# use minimum supported versions from https://devguide.python.org/versions/
python-version: "3.9"
Expand All @@ -111,7 +131,16 @@ jobs:
resolution: "lowest-direct"

steps:
- uses: actions/checkout@v3
- name: Checkout library code
uses: actions/checkout@v4
with:
path: library
- name: Checkout Geo Engine code
uses: actions/checkout@v4
with:
repository: geo-engine/geoengine
ref: main # TODO: read from .ci_instance
path: backend
- name: APT update
run: sudo apt-get update
- name: Install system dependencies
Expand Down Expand Up @@ -139,6 +168,10 @@ jobs:
source .venv/bin/activate
uv pip install --resolution=${{ env.resolution }} -e .[test]
uv pip install --resolution=${{ env.resolution }} pytest-cov==6.0.0
- name: Pre-build Geo Engine
run: |
cargo build --locked
cargo build --locked --bin geoengine-cli
- name: Test
run: |
source .venv/bin/activate
Expand Down

0 comments on commit 48075c1

Please sign in to comment.