-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into main_allocation_network
- Loading branch information
Showing
74 changed files
with
1,457 additions
and
416 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 |
---|---|---|
|
@@ -9,6 +9,10 @@ on: | |
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
# needed to allow julia-actions/cache to delete old caches that it has created | ||
permissions: | ||
actions: write | ||
contents: read | ||
jobs: | ||
test: | ||
name: Julia ${{ matrix.julia_version }} - ${{ matrix.os }} - ${{ matrix.arch }} | ||
|
@@ -20,34 +24,25 @@ jobs: | |
- "~1.10.0-0" | ||
os: | ||
- ubuntu-latest | ||
- macOS-latest | ||
# https://github.com/Deltares/Ribasim/issues/825 | ||
# - macOS-latest | ||
- windows-latest | ||
arch: | ||
- x64 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: julia-actions/cache@v1 | ||
with: | ||
cache-compiled: "true" | ||
cache-registries: "true" | ||
- uses: prefix-dev/[email protected] | ||
with: | ||
pixi-version: "latest" | ||
- name: Prepare pixi | ||
run: pixi run install-without-pre-commit | ||
- name: Prepare model input | ||
- name: Test Ribasim Core | ||
run: | | ||
pixi run generate-testmodels | ||
- uses: julia-actions/setup-julia@v1 | ||
with: | ||
version: ${{ matrix.julia_version }} | ||
arch: ${{ matrix.arch }} | ||
- uses: julia-actions/cache@v1 | ||
with: | ||
cache-compiled: "true" | ||
cache-registries: "true" | ||
- uses: julia-actions/julia-buildpkg@v1 | ||
with: | ||
project: core | ||
- uses: julia-actions/julia-runtest@v1 | ||
with: | ||
project: core | ||
pixi run test-ribasim-core-cov | ||
- uses: julia-actions/julia-processcoverage@v1 | ||
with: | ||
directories: core/src | ||
|
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 |
---|---|---|
|
@@ -8,6 +8,10 @@ on: | |
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
# needed to allow julia-actions/cache to delete old caches that it has created | ||
permissions: | ||
actions: write | ||
contents: read | ||
jobs: | ||
publish: | ||
name: Docs Julia ${{ matrix.julia_version }} - ${{ matrix.arch }} | ||
|
@@ -22,21 +26,10 @@ jobs: | |
- x64 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: julia-actions/setup-julia@v1 | ||
with: | ||
version: ${{ matrix.julia_version }} | ||
arch: ${{ matrix.arch }} | ||
|
||
- uses: julia-actions/julia-buildpkg@v1 | ||
with: | ||
project: core | ||
|
||
- uses: julia-actions/cache@v1 | ||
with: | ||
cache-compiled: "true" | ||
cache-registries: "true" | ||
|
||
- uses: prefix-dev/[email protected] | ||
with: | ||
pixi-version: "latest" | ||
|
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 |
---|---|---|
|
@@ -11,7 +11,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.12" | ||
- uses: pre-commit/[email protected] |
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 |
---|---|---|
|
@@ -150,3 +150,4 @@ dmypy.json | |
build/ribasim_cli/tests/temp/ | ||
python/ribasim_api/tests/temp/ | ||
report.xml | ||
/juliaup |
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
89 changes: 89 additions & 0 deletions
89
.teamcity/Ribasim_Ribasim/buildTypes/Ribasim_Ribasim_BuildLibribasimLinux.xml
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,89 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<build-type xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" uuid="a7c17a38-6995-4b58-80f4-d91581b9b802" paused="true" xsi:noNamespaceSchemaLocation="https://www.jetbrains.com/teamcity/schemas/2021.1/project-config.xsd"> | ||
<name>Build libribasim - Linux</name> | ||
<description /> | ||
<settings> | ||
<options> | ||
<option name="artifactRules" value="ribasim\build\create_binaries\libribasim => libribasim.zip" /> | ||
<option name="cleanBuild" value="true" /> | ||
<option name="executionTimeoutMin" value="120" /> | ||
<option name="publishArtifactCondition" value="SUCCESSFUL" /> | ||
</options> | ||
<parameters /> | ||
<build-runners> | ||
<runner id="RUNNER_2415" name="Set up pixi" type="simpleRunner"> | ||
<parameters> | ||
<param name="script.content"><![CDATA[#!/bin/bash | ||
# black magic | ||
source /usr/share/Modules/init/bash | ||
module load pixi | ||
pixi --version | ||
pixi run install-without-pre-commit]]></param> | ||
<param name="teamcity.build.workingDir" value="ribasim" /> | ||
<param name="teamcity.step.mode" value="default" /> | ||
<param name="use.custom.script" value="true" /> | ||
</parameters> | ||
</runner> | ||
<runner id="RUNNER_2416" name="Build binary" type="simpleRunner"> | ||
<parameters> | ||
<param name="script.content"><![CDATA[#!/bin/bash | ||
# black magic | ||
source /usr/share/Modules/init/bash | ||
module load pixi | ||
pixi run remove-artifacts | ||
pixi run build-libribasim]]></param> | ||
<param name="teamcity.build.workingDir" value="ribasim" /> | ||
<param name="teamcity.step.mode" value="default" /> | ||
<param name="use.custom.script" value="true" /> | ||
</parameters> | ||
</runner> | ||
</build-runners> | ||
<vcs-settings> | ||
<vcs-entry-ref root-id="Ribasim_Ribasim_Ribasim"> | ||
<checkout-rule rule=". => ribasim" /> | ||
</vcs-entry-ref> | ||
</vcs-settings> | ||
<requirements> | ||
<does-not-equal id="RQ_275" name="env.OS" value="Windows_NT" /> | ||
</requirements> | ||
<build-triggers> | ||
<build-trigger id="TRIGGER_497" type="schedulingTrigger"> | ||
<parameters> | ||
<param name="branchFilter"><![CDATA[+:<default> | ||
+:v*]]></param> | ||
<param name="cronExpression_dm" value="*" /> | ||
<param name="cronExpression_dw" value="?" /> | ||
<param name="cronExpression_hour" value="*" /> | ||
<param name="cronExpression_min" value="0" /> | ||
<param name="cronExpression_month" value="*" /> | ||
<param name="cronExpression_sec" value="0" /> | ||
<param name="cronExpression_year" value="*" /> | ||
<param name="dayOfWeek" value="Sunday" /> | ||
<param name="enableQueueOptimization" value="true" /> | ||
<param name="hour" value="3" /> | ||
<param name="minute" value="0" /> | ||
<param name="promoteWatchedBuild" value="true" /> | ||
<param name="revisionRule" value="lastFinished" /> | ||
<param name="revisionRuleBuildBranch" value="+:<default>" /> | ||
<param name="schedulingPolicy" value="daily" /> | ||
<param name="timezone" value="SERVER" /> | ||
<param name="triggerBuildWithPendingChangesOnly" value="true" /> | ||
</parameters> | ||
</build-trigger> | ||
</build-triggers> | ||
<build-extensions> | ||
<extension id="BUILD_EXT_295" type="commit-status-publisher"> | ||
<parameters> | ||
<param name="github_authentication_type" value="token" /> | ||
<param name="github_host" value="https://api.github.com" /> | ||
<param name="publisherId" value="githubStatusPublisher" /> | ||
<param name="secure:github_access_token" value="credentialsJSON:71420214-373c-4ccd-ba32-2ea886843f62" /> | ||
</parameters> | ||
</extension> | ||
</build-extensions> | ||
<cleanup /> | ||
</settings> | ||
</build-type> | ||
|
44 changes: 32 additions & 12 deletions
44
.../Ribasim_Ribasim_PushReleaseBuildToS3.xml → ...pes/Ribasim_Ribasim_MakeGitHubRelease.xml
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "Ribasim QGIS: Attach to QGIS", | ||
"type": "python", | ||
"request": "attach", | ||
"host": "localhost", | ||
"port": 5678, | ||
"justMyCode": false | ||
} | ||
] | ||
} |
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.