-
Notifications
You must be signed in to change notification settings - Fork 1
52 lines (52 loc) · 2.24 KB
/
Copy pathci.yml
File metadata and controls
52 lines (52 loc) · 2.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: CI
on:
pull_request:
branches: [main]
types: [opened, synchronize, reopened, labeled, unlabeled]
jobs:
label-gate:
uses: AustralianCancerDataNetwork/cava-devops/.github/workflows/label-gate.yml@main
build-test:
uses: AustralianCancerDataNetwork/cava-devops/.github/workflows/build-test.yml@main
build-test-postgres:
uses: AustralianCancerDataNetwork/cava-devops/.github/workflows/build-test-postgres.yml@main
with:
ty-src: src
postgres-image: pgvector/pgvector:pg18
postgres-db: test_db
postgres-user: postgres
postgres-password: postgres
setup-commands: |
mkdir -p "$RUNNER_TEMP/omop"
cp tests/support/postgres_ci_config.toml "$RUNNER_TEMP/omop/config.toml"
export OA_CONFIG_PATH="$RUNNER_TEMP/omop/config.toml"
export GROUNDWORKERS_CONFIG_PATH="$RUNNER_TEMP/omop/config.toml"
export GROUNDWORKERS_REQUIRE_INTEGRATION=1
export GROUNDWORKERS_TEST_DATABASE_URL="postgresql+psycopg://postgres:postgres@localhost:5432/test_db"
echo "OA_CONFIG_PATH=$RUNNER_TEMP/omop/config.toml" >> "$GITHUB_ENV"
echo "GROUNDWORKERS_CONFIG_PATH=$RUNNER_TEMP/omop/config.toml" >> "$GITHUB_ENV"
echo "GROUNDWORKERS_REQUIRE_INTEGRATION=1" >> "$GITHUB_ENV"
echo "GROUNDWORKERS_TEST_DATABASE_URL=postgresql+psycopg://postgres:postgres@localhost:5432/test_db" >> "$GITHUB_ENV"
uv run omop-config connections add pg_test \
--dialect postgresql+psycopg \
--host localhost \
--port 5432 \
--user postgres \
--password postgres \
--database-name test_db \
--test-only false
uv run omop-config databases add test_cdm_db \
--kind cdm \
--connection pg_test \
--schema-name public
uv run omop-config databases add test_vector_db \
--kind generic \
--connection pg_test \
--schema-name public
uv run omop-config vector-stores add test_embeddings \
--backend-type pgvector \
--database test_vector_db
uv run omop-config configure groundworkers \
--cdm-db test_cdm_db \
--vector-store-name test_embeddings
uv run python -m tests.support.seed_postgres_fixture