-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/develop'
- Loading branch information
Showing
204 changed files
with
6,468 additions
and
3,108 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
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 @@ | ||
docs/images/*.png filter=lfs diff=lfs merge=lfs -text |
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,137 @@ | ||
name: Performance Evaluation | ||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: self-hosted | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
debian-version: ["11", "12"] | ||
include: | ||
- debian-version: "11" | ||
python-version: "3.9" | ||
postgres-version: "13" | ||
postgis-version: "3.2" | ||
- debian-version: "12" | ||
python-version: "3.11" | ||
postgres-version: "15" | ||
postgis-version: "3.3" | ||
|
||
name: Debian ${{ matrix.debian-version }} | ||
|
||
services: | ||
postgres: | ||
image: postgis/postgis:${{ matrix.postgres-version }}-${{ matrix.postgis-version }} | ||
env: | ||
POSTGRES_DB: geonature2db | ||
POSTGRES_PASSWORD: geonatpasswd | ||
POSTGRES_USER: geonatadmin | ||
ports: | ||
- 5432:5432 | ||
options: >- | ||
--health-cmd pg_isready | ||
--health-interval 10s | ||
--health-timeout 5s | ||
--health-retries 5 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
- name: Add database extensions | ||
run: | | ||
psql -h localhost -U geonatadmin -d geonature2db -f install/assets/db/add_pg_extensions.sql | ||
env: | ||
PGPASSWORD: geonatpasswd | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
cache: "pip" | ||
- name: Install GDAL | ||
run: | | ||
sudo apt update | ||
sudo apt install -y libgdal-dev | ||
- name: Install dependencies | ||
if: github.base_ref == 'master' | ||
run: | | ||
echo 'Installation des requirements de prod' | ||
python -m pip install --upgrade pip | ||
python -m pip install \ | ||
-e ..[tests] \ | ||
-r requirements.txt | ||
working-directory: ./backend | ||
- name: Install dependencies | ||
if: github.base_ref != 'master' | ||
run: | | ||
echo 'Installation des requirements de dev' | ||
python -m pip install --upgrade pip | ||
python -m pip install \ | ||
-e ..[tests] \ | ||
-r requirements-dev.in | ||
working-directory: ./backend | ||
- name: Show database branches and dependencies | ||
run: | | ||
geonature db status --dependencies | ||
env: | ||
GEONATURE_CONFIG_FILE: config/test_config.toml | ||
# - name: Restore database | ||
# run: | | ||
# # wget https://www.dropbox.com/scl/fi/17gsthsftfg59mxwmbbre/export_geonature_10000.zip?rlkey=33choleag4xw60wadm802c3oh&dl=1 -O 10kDump.zip | ||
# # unzip 10kDump.zip | ||
# wget https://www.dropbox.com/scl/fi/jjkxyg120bxc0dp8uy8kq/300KDump.sql?rlkey=tyuk2svitcb9nyshn7r09yo7b&dl=1 -O 300KDump.sql | ||
# ls | ||
# psql -h localhost -U geonatadmin -d geonature2db -f 300KDump.sql | ||
# env: | ||
# PGPASSWORD: geonatpasswd | ||
- name: Install database | ||
run: | | ||
install/03b_populate_db.sh | ||
env: | ||
GEONATURE_CONFIG_FILE: config/test_config.toml | ||
srid_local: 2154 | ||
install_bdc_statuts: true | ||
add_sample_data: true | ||
install_sig_layers: true | ||
install_grid_layer_5: true | ||
install_grid_layer_10: true | ||
install_ref_sensitivity: true | ||
- name: Show database status | ||
run: | | ||
geonature db status | ||
env: | ||
GEONATURE_CONFIG_FILE: config/test_config.toml | ||
|
||
- name: Install core modules backend | ||
run: | | ||
pip install -e contrib/occtax | ||
pip install -e contrib/gn_module_occhab | ||
pip install -e contrib/gn_module_validation | ||
- name: Show database status | ||
run: | | ||
geonature db status | ||
env: | ||
GEONATURE_CONFIG_FILE: config/test_config.toml | ||
- name: Install core modules database | ||
run: | | ||
geonature upgrade-modules-db | ||
env: | ||
GEONATURE_CONFIG_FILE: config/test_config.toml | ||
- name: Show database status | ||
run: | | ||
geonature db status --dependencies | ||
env: | ||
GEONATURE_CONFIG_FILE: config/test_config.toml | ||
- name: Load benchmark stable data | ||
run: | | ||
wget https://geonature.fr/data/benchmark_history/benchmark_stable.json -O benchmark_stable.json | ||
- name: Compare performance to stable data | ||
run: | | ||
pytest --benchmark-only --benchmark-compare-fail="mean:0.1" --benchmark-compare=benchmark_stable.json | ||
env: | ||
GEONATURE_CONFIG_FILE: config/test_config.toml | ||
# https://stackoverflow.com/a/64126737 For posting results on GitHub Pull Requests |
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 |
---|---|---|
@@ -1,32 +1,24 @@ | ||
[submodule "backend/dependencies/UsersHub-authentification-module"] | ||
path = backend/dependencies/UsersHub-authentification-module | ||
url = https://github.com/PnX-SI/UsersHub-authentification-module | ||
branch = develop | ||
url = ../UsersHub-authentification-module.git | ||
[submodule "backend/dependencies/Nomenclature-api-module"] | ||
path = backend/dependencies/Nomenclature-api-module | ||
url = https://github.com/PnX-SI/Nomenclature-api-module | ||
branch = develop | ||
url = ../Nomenclature-api-module.git | ||
[submodule "backend/dependencies/Habref-api-module"] | ||
path = backend/dependencies/Habref-api-module | ||
url = https://github.com/PnX-SI/Habref-api-module | ||
branch = develop | ||
url = ../Habref-api-module.git | ||
[submodule "backend/dependencies/Utils-Flask-SQLAlchemy"] | ||
path = backend/dependencies/Utils-Flask-SQLAlchemy | ||
url = https://github.com/PnX-SI/Utils-Flask-SQLAlchemy | ||
branch = develop | ||
url = ../Utils-Flask-SQLAlchemy.git | ||
[submodule "backend/dependencies/TaxHub"] | ||
path = backend/dependencies/TaxHub | ||
url = https://github.com/PnX-SI/TaxHub | ||
branch = develop | ||
url = ../TaxHub.git | ||
[submodule "backend/dependencies/Utils-Flask-SQLAlchemy-Geo"] | ||
path = backend/dependencies/Utils-Flask-SQLAlchemy-Geo | ||
url = https://github.com/PnX-SI/Utils-Flask-SQLAlchemy-Geo | ||
branch = develop | ||
url = ../Utils-Flask-SQLAlchemy-Geo.git | ||
[submodule "backend/dependencies/RefGeo"] | ||
path = backend/dependencies/RefGeo | ||
url = https://github.com/PnX-SI/RefGeo.git | ||
branch = develop | ||
url = ../RefGeo.git | ||
[submodule "backend/dependencies/UsersHub"] | ||
path = backend/dependencies/UsersHub | ||
url = https://github.com/PnX-SI/UsersHub | ||
branch = develop | ||
url = ../UsersHub.git |
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 |
---|---|---|
@@ -1 +1 @@ | ||
2.14.0 | ||
2.14.1 |
Submodule Nomenclature-api-module
updated
8 files
+1 −1 | .github/workflows/pytest.yml | |
+1 −1 | VERSION | |
+1 −1 | dependencies/TaxHub | |
+1 −1 | dependencies/UsersHub-authentification-module | |
+8 −0 | docs/changelog.rst | |
+2 −2 | requirements.in | |
+3 −3 | requirements.txt | |
+2 −5 | setup.py |
Submodule RefGeo
updated
4 files
+7 −0 | CHANGELOG.md | |
+1 −1 | VERSION | |
+24 −12 | src/ref_geo/routes.py | |
+15 −0 | src/ref_geo/tests/test_ref_geo.py |
Submodule TaxHub
updated
27 files
Submodule UsersHub
updated
19 files
+1 −1 | .gitignore | |
+35 −0 | .readthedocs.yaml | |
+0 −3 | Dockerfile | |
+1 −1 | VERSION | |
+10 −6 | app/api/route_register.py | |
+4 −0 | app/models.py | |
+8 −0 | app/t_roles/route.py | |
+1 −1 | app/temp_users/routes.py | |
+44 −1 | app/templates/info_user.html | |
+22 −10 | app/templates/librairies.html | |
+3 −0 | config/config.py.sample | |
+1 −1 | dependencies/UsersHub-authentification-module | |
+0 −7 | docker_healthcheck.sh | |
+23 −0 | docs/changelog.rst | |
+9 −0 | docs/conf.py | |
+1 −0 | docs/requirements.readthedocs.txt | |
+1 −1 | requirements-dependencies.in | |
+1 −3 | requirements-dev.txt | |
+2 −4 | requirements.txt |
Submodule UsersHub-authentification-module
updated
3 files
+1 −1 | VERSION | |
+9 −0 | docs/changelog.rst | |
+12 −5 | src/pypnusershub/routes.py |
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.