-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Bump versions * Update docs * Add comment * Initial version test.yml * WIP * WIP * WIP * Reformat * WIP * WIP * WIP * WIP * WIP * Add analyse.yml * Add badge * WIP * pre-commit fixes * WIP * WIP * WIP * WIP * WIP * WIP * WIP * WIP * Return non-zero value in case of error * WIP * WIP * WIP * WIP * WIP * WIP
- Loading branch information
Showing
13 changed files
with
158 additions
and
59 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,37 @@ | ||
name: Analyse | ||
|
||
on: | ||
pull_request: | ||
push: | ||
|
||
jobs: | ||
build: | ||
name: ${{ matrix.platform.os }} / ${{ matrix.platform.arch }} / python-${{ matrix.python_version }} | ||
runs-on: ${{ matrix.platform.os }} | ||
timeout-minutes: 30 | ||
defaults: | ||
run: | ||
shell: bash -l {0} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python_version: ["3.12"] | ||
platform: | ||
- { os: "ubuntu-22.04", arch: x64 } | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Setup Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python_version }} | ||
cache: "pip" | ||
cache-dependency-path: "**/requirements*.txt" | ||
- name: Install packages | ||
run: | | ||
pip install -r environment/configuration/requirements.txt -r environment/configuration/requirements-dev.txt | ||
- name: Analyse files | ||
run: | | ||
pre-commit install | ||
# TODO For some reason pylint in a GH workflow complains about PySide6... | ||
SKIP=pylint pre-commit run --all-files |
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,59 @@ | ||
name: Test | ||
|
||
on: | ||
pull_request: | ||
push: | ||
|
||
jobs: | ||
build: | ||
name: ${{ matrix.platform.os }} / ${{ matrix.platform.arch }} / python-${{ matrix.python_version }} | ||
runs-on: ${{ matrix.platform.os }} | ||
timeout-minutes: 30 | ||
defaults: | ||
run: | ||
shell: bash -l {0} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
# min version, max version | ||
# 3.11 is the first version supported by darwin / arm64 runner | ||
python_version: ["3.11", "3.12"] | ||
platform: | ||
- { os: "macos-14", arch: arm64 } | ||
- { os: "macos-13", arch: x64 } | ||
- { os: "ubuntu-22.04", arch: x64 } | ||
- { os: "windows-2022", arch: x64 } | ||
steps: | ||
- name: Setup Linux platform | ||
if: ${{ startsWith(matrix.platform.os, 'ubuntu') }} | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install libegl1 | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Setup Python | ||
uses: actions/setup-python@v5 | ||
id: py | ||
with: | ||
python-version: ${{ matrix.python_version }} | ||
cache: "pip" | ||
cache-dependency-path: "**/requirements*.txt" | ||
- name: Install packages | ||
run: | | ||
py_interpreter="${{ steps.py.outputs.python-path }}" | ||
$py_interpreter -m pip install \ | ||
-r environment/configuration/requirements.txt \ | ||
-r environment/configuration/requirements-dev.txt | ||
- name: Run tests | ||
run: | | ||
mkdir build | ||
cd build | ||
cmake -S .. -G Ninja | ||
ctest --test-dir . --output-on-failure | ||
- name: Create documentation | ||
run: | | ||
cmake --build build --target documentation | ||
# - name: Create and verify release | ||
# run: | | ||
# py_interpreter="${{ steps.py.outputs.python-path }}" | ||
# PYTHONPATH=source/package ${py_interpreter} environment/script/create_and_verify_release.py ./build |
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,3 +1,7 @@ | ||
# Adaptation pathways | ||
[![Test](https://github.com/Deltares-research/PathwaysGenerator/actions/workflows/test.yml/badge.svg)](https://github.com/Deltares-research/PathwaysGenerator/actions/workflows/test.yml) | ||
[![Analyse](https://github.com/Deltares-research/PathwaysGenerator/actions/workflows/analyse.yml/badge.svg)](https://github.com/Deltares-research/PathwaysGenerator/actions/workflows/analyse.yml) | ||
|
||
https://publicwiki.deltares.nl/display/AP/Adaptation+Pathways | ||
- [Developer manual](documentation/develop/index.rst) | ||
- [User manual](documentation/use/index.rst) | ||
- [Tester manual](documentation/test/index.rst) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
docopt | ||
matplotlib | ||
networkx[default] | ||
pyside6 | ||
pyside6>=6.6 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
""" | ||
Package containing all code related to the Adaptation Pathways | ||
""" | ||
|
||
from .action import Action | ||
from .action_combination import ActionCombination | ||
from .version import __version__ |
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