-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Github action - install debian12 - Simplification install_db.sh (#582)
* test gitub action * update: install_db.sh install_env.sh requirements.txt install_db.sh => work without geonature (geonature-atlas alone) install_env.sh => add wget + use python3 requirements.txt => update greenlet * Update and clean requirements * Correction installation et maj de la BD * Clean install without ref_geo * fix: migration script to update vm_observations_mailles (#581) * Run pqsql with db owner not postgres * Suppression de l'installation sans taxhub + simplification installation sans ref_geo * Remove unused lib requirements.in --------- Co-authored-by: Joaquim Nallar <[email protected]> Co-authored-by: jna <[email protected]>
- Loading branch information
1 parent
537906a
commit 65d01bb
Showing
11 changed files
with
140 additions
and
305 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
name: Check pip install package with multiple version of python | ||
on: [push, pull_request] | ||
|
||
jobs: | ||
check-requirements-install: | ||
strategy: | ||
matrix: | ||
python-version: [ "3.9", "3.12" ] | ||
|
||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
cache: 'pip' | ||
- run: pip install -r requirements.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
CREATE INDEX index_gist_t_layer_territoire ON atlas.t_layer_territoire USING gist(the_geom); | ||
CREATE INDEX index_gist_t_layers_communes ON atlas.l_communes USING gist (the_geom); | ||
|
||
CREATE TABLE atlas.t_mailles_territoire as | ||
SELECT m.geom AS the_geom, ST_AsGeoJSON(st_transform(m.geom, 4326)) as geojson_maille | ||
FROM atlas.t_mailles_t_mailles_source m, atlas.t_layer_territoire t | ||
WHERE ST_Intersects(m.geom, t.the_geom); | ||
|
||
CREATE INDEX index_gist_t_mailles_territoire ON atlas.t_mailles_territoire USING gist (the_geom); | ||
ALTER TABLE atlas.t_mailles_territoire ADD COLUMN id_maille serial; | ||
ALTER TABLE atlas.t_mailles_territoire ADD PRIMARY KEY (id_maille); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.