Skip to content

Commit

Permalink
Merge branch 'main' into typst-docs
Browse files Browse the repository at this point in the history
  • Loading branch information
visr authored Apr 29, 2024
2 parents bdba9cb + 6c4626d commit 5779ba5
Show file tree
Hide file tree
Showing 132 changed files with 11,242 additions and 14,642 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/core_compat_helper.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ jobs:
run: which julia
continue-on-error: true
- name: Install Julia, but only if it is not already available in the PATH
uses: julia-actions/setup-julia@v1
uses: julia-actions/setup-julia@v2
with:
version: '1'
version: "1"
arch: ${{ runner.arch }}
if: steps.julia_in_path.outcome != 'success'
- name: "Add the General registry via Git"
Expand All @@ -37,7 +37,10 @@ jobs:
- name: "Run CompatHelper"
run: |
import CompatHelper
CompatHelper.main(; subdirs=["core"])
CompatHelper.main(;
subdirs=["core"],
bump_compat_containing_equality_specifier=false,
)
shell: julia --color=yes {0}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/core_testmodels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ jobs:
with:
cache-compiled: "true"
cache-registries: "true"
- uses: prefix-dev/setup-pixi@v0.5.1
- uses: prefix-dev/setup-pixi@v0.6.0
with:
pixi-version: "latest"
- name: Prepare pixi
run: pixi run install-ci
run: pixi run --environment=dev install-ci
- name: Run testmodels with Ribasim Core
run: |
pixi run ribasim-core-testmodels
4 changes: 2 additions & 2 deletions .github/workflows/core_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ jobs:
with:
cache-compiled: "true"
cache-registries: "true"
- uses: prefix-dev/setup-pixi@v0.5.1
- uses: prefix-dev/setup-pixi@v0.6.0
with:
pixi-version: "latest"
- name: Prepare pixi
run: pixi run install-ci
run: pixi run --environment=dev install-ci
- name: Test Ribasim Core
run: |
pixi run test-ribasim-core-cov
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ jobs:
with:
cache-compiled: "true"
cache-registries: "true"
- uses: prefix-dev/setup-pixi@v0.5.1
- uses: prefix-dev/setup-pixi@v0.6.0
with:
pixi-version: "latest"
- name: Prepare pixi
run: pixi run install-ci
run: pixi run --environment=dev install-ci

- name: Check Quarto installation and all engines
run: pixi run quarto-check
Expand All @@ -41,7 +41,7 @@ jobs:

- name: Publish Quarto Project
if: github.ref == 'refs/heads/main'
uses: peaceiris/actions-gh-pages@v3
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/_site
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/julia_auto_update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- uses: actions/checkout@v4
with:
ssh-key: ${{ secrets.SSH_PRIVATE_KEY }}
- uses: prefix-dev/setup-pixi@v0.5.1
- uses: prefix-dev/setup-pixi@v0.6.0
with:
pixi-version: "latest"
- name: Update Julia manifest file
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Python Lint
name: Mypy Type Check
on:
push:
branches: [main, update/pixi-lock]
Expand All @@ -16,11 +16,11 @@ jobs:
continue-on-error: true
steps:
- uses: actions/checkout@v4
- uses: prefix-dev/setup-pixi@v0.5.1
- uses: prefix-dev/setup-pixi@v0.6.0
with:
pixi-version: "latest"
- name: Prepare pixi
run: pixi run install-ci
run: pixi run --environment=dev install-ci
- name: Run mypy on python/ribasim
run: |
pixi run mypy-ribasim-python
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pixi_auto_update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- uses: actions/checkout@v4
with:
ssh-key: ${{ secrets.SSH_PRIVATE_KEY }}
- uses: prefix-dev/setup-pixi@v0.5.1
- uses: prefix-dev/setup-pixi@v0.6.0
with:
pixi-version: "latest"
cache: false
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/python_codegen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ jobs:
continue-on-error: true
steps:
- uses: actions/checkout@v4
- uses: prefix-dev/setup-pixi@v0.5.1
- uses: prefix-dev/setup-pixi@v0.6.0
with:
pixi-version: "latest"
- name: Prepare pixi
run: pixi run install-ci
run: pixi run --environment=dev install-ci
- name: Test if codegen runs without errors
run: pixi run codegen
- name: Ensure that no code has been generated
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/python_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ jobs:
- py310
steps:
- uses: actions/checkout@v4
- uses: prefix-dev/setup-pixi@v0.5.1
- uses: prefix-dev/setup-pixi@v0.6.0
with:
pixi-version: "latest"
- name: Prepare pixi
run: pixi run --environment ${{ matrix.pixi-environment }} install-ci
run: pixi run --environment ${{ matrix.pixi-environment }} install-python
- name: Test Ribasim Python
run: pixi run --environment ${{ matrix.pixi-environment }} test-ribasim-python-cov
- name: Upload coverage to Codecov
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/qgis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ jobs:
- windows-latest
steps:
- uses: actions/checkout@v4
- uses: prefix-dev/setup-pixi@v0.5.1
- uses: prefix-dev/setup-pixi@v0.6.0
with:
pixi-version: "latest"
- name: Prepare pixi
run: |
pixi run install-ci
pixi run --environment=dev install-ci
- name: Run tests
run: pixi run test-ribasim-qgis-cov
- name: Upload coverage to Codecov
Expand Down
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ docs/build/
docs/site/

/generated_testmodels
build/ribasim_cli/
build/libribasim/
build/ribasim/
build/cli/target

JuliaSysimage.dll
LocalPreferences.toml
Expand Down
10 changes: 3 additions & 7 deletions .teamcity/Ribasim/buildTypes/Ribasim_GenerateTestmodels.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ source /usr/share/Modules/init/bash
module load pixi
pixi --version
pixi run install-ci]]></param>
pixi run --environment=dev install-ci]]></param>
<param name="teamcity.build.workingDir" value="ribasim" />
<param name="teamcity.step.mode" value="default" />
<param name="use.custom.script" value="true" />
Expand All @@ -39,13 +39,10 @@ pixi run generate-testmodels]]></param>
</parameters>
</runner>
</build-runners>
<vcs-settings>
<vcs-entry-ref root-id="Ribasim_Ribasim">
<checkout-rule rule=". =&gt; ribasim" />
</vcs-entry-ref>
</vcs-settings>
<vcs-settings />
<requirements>
<does-not-equal id="RQ_275" name="env.OS" value="Windows_NT" />
<does-not-equal id="RQ_339" name="teamcity.agent.name" value="Default Agent" />
</requirements>
<build-triggers>
<build-trigger id="TRIGGER_646" type="vcsTrigger">
Expand All @@ -59,4 +56,3 @@ pixi run generate-testmodels]]></param>
<cleanup />
</settings>
</build-type>

Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<build-runners />
<vcs-settings>
<vcs-entry-ref root-id="Ribasim_Ribasim">
<checkout-rule rule="ribasim" />
<checkout-rule rule=". =&gt; ribasim" />
</vcs-entry-ref>
</vcs-settings>
<requirements />
Expand All @@ -17,7 +17,7 @@
<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:558df52e-822f-4d9d-825a-854846a9a2ff" />
<param name="secure:github_access_token" value="credentialsJSON:6b37af71-1f2f-4611-8856-db07965445c0" />
<param name="vcsRootId" value="Ribasim_Ribasim" />
</parameters>
</extension>
Expand Down
20 changes: 20 additions & 0 deletions .teamcity/Ribasim/buildTypes/Ribasim_Linux.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<template xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" uuid="1a62a1c8-edfc-4fcf-bd8d-0839b10664a3" xsi:noNamespaceSchemaLocation="https://www.jetbrains.com/teamcity/schemas/2021.1/project-config.xsd">
<name>Linux</name>
<description>Template for agent that uses Linux OS</description>
<settings>
<options>
<option name="cleanBuild" value="true" />
<option name="publishArtifactCondition" value="SUCCESSFUL" />
</options>
<parameters />
<build-runners />
<vcs-settings />
<requirements>
<equals id="RQ_418" name="teamcity.agent.jvm.os.name" value="Linux" />
</requirements>
<build-triggers />
<cleanup />
</settings>
</template>

48 changes: 0 additions & 48 deletions .teamcity/Ribasim/buildTypes/Ribasim_Ribasim_BuildPythonWheels.xml

This file was deleted.

33 changes: 16 additions & 17 deletions .teamcity/Ribasim/buildTypes/Ribasim_Ribasim_MakeGitHubRelease.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
<build-type xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" uuid="5fa3a42d-6a7b-4820-95c1-c550d6648ae7" xsi:noNamespaceSchemaLocation="https://www.jetbrains.com/teamcity/schemas/2021.1/project-config.xsd">
<name>Make GitHub Release</name>
<description />
<settings>
<settings ref="Ribasim_Linux">
<parameters>
<param name="env.GITHUB_TOKEN" value="%github_teamcity-deltares_public_access_token%" />
<param name="env.GITHUB_TOKEN" value="%github_deltares-service-account_access_token%" />
</parameters>
<build-runners>
<runner id="RUNNER_2523" name="Push release to GitHub" type="simpleRunner">
Expand All @@ -14,8 +14,7 @@ set -euxo pipefail
. /usr/share/Modules/init/bash
module load pixi
pixi run github-release
]]></param>
pixi run github-release]]></param>
<param name="teamcity.step.mode" value="default" />
<param name="use.custom.script" value="true" />
</parameters>
Expand All @@ -24,13 +23,12 @@ pixi run github-release
<vcs-settings>
<vcs-entry-ref root-id="Ribasim_Ribasim" />
</vcs-settings>
<requirements>
<equals id="RQ_294" name="teamcity.agent.jvm.os.name" value="Linux" />
</requirements>
<requirements />
<build-triggers>
<build-trigger id="TRIGGER_637" type="vcsTrigger">
<parameters>
<param name="branchFilter" value="+:v20*" />
<param name="branchFilter"><![CDATA[+:v20*
+:release*]]></param>
<param name="enableQueueOptimization" value="true" />
<param name="quietPeriodMode" value="DO_NOT_USE" />
</parameters>
Expand Down Expand Up @@ -58,17 +56,17 @@ pixi run github-release
<revisionRule name="sameChainOrLastFinished" revision="latest.sameChainOrLastFinished" />
<artifact sourcePath="ribasim_qgis.zip" />
</dependency>
<dependency id="ARTIFACT_DEPENDENCY_684" sourceBuildTypeId="Ribasim_Linux_BuildRibasimCli" cleanDestination="false">
<dependency id="ARTIFACT_DEPENDENCY_684" sourceBuildTypeId="Ribasim_Linux_BuildRibasim" cleanDestination="false">
<revisionRule name="sameChainOrLastFinished" revision="latest.sameChainOrLastFinished" />
<artifact sourcePath="ribasim_cli_linux.zip" />
<artifact sourcePath="ribasim_linux.zip" />
</dependency>
<dependency id="ARTIFACT_DEPENDENCY_157" sourceBuildTypeId="Ribasim_Windows_BuildRibasimCli" cleanDestination="false">
<dependency id="ARTIFACT_DEPENDENCY_157" sourceBuildTypeId="Ribasim_Windows_BuildRibasim" cleanDestination="false">
<revisionRule name="sameChainOrLastFinished" revision="latest.sameChainOrLastFinished" />
<artifact sourcePath="ribasim_cli_windows.zip" />
<artifact sourcePath="ribasim_windows.zip" />
</dependency>
</artifact-dependencies>
<dependencies>
<depend-on sourceBuildTypeId="Ribasim_Windows_BuildRibasimCli">
<depend-on sourceBuildTypeId="Ribasim_Windows_BuildRibasim">
<options>
<option name="take-started-build-with-same-revisions" value="true" />
<option name="take-successful-builds-only" value="true" />
Expand All @@ -80,25 +78,25 @@ pixi run github-release
<option name="take-successful-builds-only" value="true" />
</options>
</depend-on>
<depend-on sourceBuildTypeId="Ribasim_Linux_TestRibasimCli">
<depend-on sourceBuildTypeId="Ribasim_GenerateTestmodels">
<options>
<option name="take-started-build-with-same-revisions" value="true" />
<option name="take-successful-builds-only" value="true" />
</options>
</depend-on>
<depend-on sourceBuildTypeId="Ribasim_GenerateTestmodels">
<depend-on sourceBuildTypeId="Ribasim_Linux_BuildRibasim">
<options>
<option name="take-started-build-with-same-revisions" value="true" />
<option name="take-successful-builds-only" value="true" />
</options>
</depend-on>
<depend-on sourceBuildTypeId="Ribasim_Linux_BuildRibasimCli">
<depend-on sourceBuildTypeId="Ribasim_Linux_TestRibasimBinaries">
<options>
<option name="take-started-build-with-same-revisions" value="true" />
<option name="take-successful-builds-only" value="true" />
</options>
</depend-on>
<depend-on sourceBuildTypeId="Ribasim_Windows_TestRibasimCli">
<depend-on sourceBuildTypeId="Ribasim_Windows_TestRibasimBinaries">
<options>
<option name="take-started-build-with-same-revisions" value="true" />
<option name="take-successful-builds-only" value="true" />
Expand All @@ -112,3 +110,4 @@ pixi run github-release
</cleanup>
</settings>
</build-type>

Loading

0 comments on commit 5779ba5

Please sign in to comment.