Skip to content

Commit

Permalink
Feat(CI) Update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre-Narcisi committed Mar 28, 2024
1 parent 916ec6c commit 2116305
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/eval.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: Performance Evaluation
on:
workflow_dispatch:

env:
HOST_PORT: 3444
jobs:
build:
runs-on: self-hosted
Expand Down Expand Up @@ -30,7 +32,7 @@ jobs:
POSTGRES_PASSWORD: geonatpasswd
POSTGRES_USER: geonatadmin
ports:
- 5444:5432
- $HOST_PORT:5432
options: >-
--health-cmd pg_isready
--health-interval 10s
Expand All @@ -43,9 +45,11 @@ jobs:
submodules: true
- name: Add database extensions
run: |
psql -p 5444 -h localhost -U geonatadmin -d geonature2db -f install/assets/db/add_pg_extensions.sql
psql -p $HOST_PORT -h localhost -U geonatadmin -d geonature2db -f install/assets/db/add_pg_extensions.sql
env:
PGPASSWORD: geonatpasswd
- name: Change geonature config
run: sed -i "s|^SQLALCHEMY_DATABASE_URI = .*$|SQLALCHEMY_DATABASE_URI = \"postgresql:\/\/geonatadmin:[email protected]:$HOST_PORT\/geonature2db\"|" config/test_config.toml
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
Expand Down
2 changes: 1 addition & 1 deletion config/test_config.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
SQLALCHEMY_DATABASE_URI = "postgresql://geonatadmin:[email protected]:5444/geonature2db"
SQLALCHEMY_DATABASE_URI = "postgresql://geonatadmin:[email protected]:5432/geonature2db"
URL_APPLICATION = 'http://127.0.0.1:4200'
API_ENDPOINT = 'http://127.0.0.1:8000'
API_TAXHUB = 'http://127.0.0.1:5000/api'
Expand Down

0 comments on commit 2116305

Please sign in to comment.