Skip to content

Commit

Permalink
Merge pull request Universite-Gustave-Eiffel#695 from Universite-Gust…
Browse files Browse the repository at this point in the history
…ave-Eiffel/5.X

Merge 5.x to main branch
  • Loading branch information
nicolas-f authored Jan 22, 2025
2 parents ba984f5 + 3b6c67a commit af6118d
Show file tree
Hide file tree
Showing 297 changed files with 27,829 additions and 21,705 deletions.
31 changes: 19 additions & 12 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,19 @@ on: [ push, pull_request, workflow_dispatch ]
jobs:
build:
runs-on: ubuntu-latest
services:
postgres:
image: postgis/postgis:16-3.4
env:
# must specify password for PG Docker container image, see: https://registry.hub.docker.com/_/postgres?tab=description&page=1&name=10
POSTGRES_USER: noisemodelling
POSTGRES_PASSWORD: noisemodelling
POSTGRES_DB: noisemodelling_db
ports:
- 5432:5432
# needed because the postgres container does not provide a healthcheck
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
steps:
- uses: SPalominos/[email protected]
with:
psql_version: '9.6'
pgis_version: '2.5'
docker_image: 'postgis/postgis'
db_password: 'orbisgis'
db_user: 'orbisgis'
db_name: 'orbisgis_db'
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v1
Expand All @@ -23,9 +27,12 @@ jobs:
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
- name: Building
run: |
mvn test install -B
cd wps_scripts && ./gradlew test --info --stacktrace
run: mvn test install -B
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- name: Build and test WPS with Gradle
run: ./gradlew build --info --stacktrace
working-directory: ./wps_scripts
- name: Deploy
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
Expand All @@ -35,7 +42,7 @@ jobs:
- name: Clean
run: rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- name: Cache
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: |
$HOME/.m2/
Expand Down
13 changes: 13 additions & 0 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,19 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
- name: Generate Javadoc
run: mvn javadoc:aggregate
- name: Generate Cnossos report
working-directory: noisemodelling-tutorial-01
run: mvn exec:java -Dmain.class=org.noise_planet.nmtutorial01.GenerateReferenceDeviation -Dexec.args="../Docs"
- shell: bash
run: |
mkdir -p Docs/build/html/javadoc
mv target/reports/apidocs/* Docs/build/html/javadoc/
- uses: actions/setup-python@v5
- name: Install dependencies
run: |
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ nbactions.xml
*.versionsBackup
.attach*
Docs/build
Docs/.build
Docs/venv
profile_*.csv
venv/
.DS_Store
7 changes: 3 additions & 4 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ formats:

# Optionally declare the Python requirements required to build your docs
python:
install:
- requirements: Docs/requirements.txt


install:
- requirements: Docs/requirements.txt

2 changes: 1 addition & 1 deletion Docs/Architecture.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ The documentation below presents the architecture of NoiseModelling with its dif
NoiseModelling is made of 4 main `librairies`_:

* ``noisemodelling-emission`` : to determine the noise emission
* ``noisemodelling-pathfinder`` : to determine the noise path
* ``noisemodelling-pathfinder`` : to determine the noise path
* ``noisemodelling-propagation`` : to calculate the noise propagation
* ``noisemodelling-jdbc`` : to connect NoiseModelling to a database

Expand Down
Loading

0 comments on commit af6118d

Please sign in to comment.