-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2942f34
commit c48a479
Showing
12 changed files
with
26,052 additions
and
206 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 |
---|---|---|
|
@@ -13,9 +13,6 @@ jobs: | |
test: | ||
name: Julia ${{ matrix.julia_version }} - ${{ matrix.os }} - ${{ matrix.arch }} | ||
runs-on: ${{ matrix.os }} | ||
defaults: | ||
run: | ||
shell: bash -l {0} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
|
@@ -29,18 +26,17 @@ jobs: | |
- x64 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Setup Micromamba | ||
uses: mamba-org/setup-micromamba@v1 | ||
- uses: prefix-dev/[email protected] | ||
with: | ||
cache-downloads: true | ||
cache-environment: true | ||
environment-file: ./environment.yml | ||
- name: Install ribasim | ||
run: pip install --editable python/ribasim | ||
- name: Install ribasim_testmodels | ||
run: pip install --editable python/ribasim_testmodels | ||
pixi-version: latest | ||
cache: true | ||
- name: Prepare pixi | ||
run: | | ||
pixi install | ||
pixi run post-install | ||
- name: Prepare model input | ||
run: python python/ribasim/tests/conftest.py | ||
run: | | ||
pixi run generate-testmodels | ||
- uses: julia-actions/setup-julia@v1 | ||
with: | ||
version: ${{ matrix.julia_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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,9 +14,6 @@ jobs: | |
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
defaults: | ||
run: | ||
shell: bash -l {0} | ||
strategy: | ||
matrix: | ||
julia_version: | ||
|
@@ -40,37 +37,23 @@ jobs: | |
cache-compiled: "true" | ||
cache-registries: "true" | ||
|
||
- name: Setup Micromamba | ||
uses: mamba-org/setup-micromamba@v1 | ||
- uses: prefix-dev/[email protected] | ||
with: | ||
cache-downloads: true | ||
cache-environment: true | ||
environment-file: ./environment.yml | ||
|
||
- name: Install ribasim-python | ||
run: pip install --editable python/ribasim | ||
|
||
- name: Set up Quarto | ||
uses: quarto-dev/quarto-actions/setup@v2 | ||
pixi-version: latest | ||
cache: true | ||
- name: Prepare pixi | ||
run: | | ||
pixi install | ||
pixi run post-install | ||
- name: Check Quarto installation and all engines | ||
run: quarto check all | ||
|
||
- name: Generate API pages | ||
working-directory: docs | ||
# objects.json: https://github.com/machow/quartodoc/issues/63 | ||
run: | | ||
quartodoc build | ||
rm objects.json | ||
run: pixi run quarto-check | ||
|
||
- name: Generate Julia docs | ||
working-directory: docs | ||
run: | | ||
julia --project -e "using Pkg; Pkg.instantiate()" | ||
julia --project make.jl | ||
run: pixi run build-julia-docs | ||
|
||
- name: Render Quarto Project | ||
run: "quarto render docs --to html --execute" | ||
run: pixi run quarto-render | ||
|
||
- name: Publish Quarto Project | ||
if: github.ref == 'refs/heads/main' | ||
|
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 |
---|---|---|
|
@@ -14,28 +14,22 @@ jobs: | |
name: Mypy | ||
runs-on: ubuntu-latest | ||
continue-on-error: true | ||
defaults: | ||
run: | ||
shell: bash -l {0} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Setup Micromamba | ||
uses: mamba-org/setup-micromamba@v1 | ||
- uses: prefix-dev/[email protected] | ||
with: | ||
cache-downloads: true | ||
cache-environment: true | ||
environment-file: ./environment.yml | ||
- name: Install python packages | ||
pixi-version: "latest" | ||
cache: true | ||
- name: Prepare pixi | ||
run: | | ||
pip install python/ribasim | ||
pip install python/ribasim_testmodels | ||
pip install python/ribasim_api | ||
pixi install | ||
pixi run post-install | ||
- name: Run mypy on python/ribasim | ||
run: | | ||
mypy --ignore-missing-imports python/ribasim/ribasim | ||
pixi run mypy-ribasim-python | ||
- name: Run mypy on python/ribasim_testmodels | ||
run: | | ||
mypy --ignore-missing-imports python/ribasim_testmodels/ribasim_testmodels | ||
pixi run mypy-ribasim-testmodels | ||
- name: Run mypy on python/ribasim_api | ||
run: | | ||
mypy --ignore-missing-imports python/ribasim_api/ribasim_api | ||
pixi run mypy-ribasim-api |
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 |
---|---|---|
|
@@ -13,9 +13,6 @@ jobs: | |
test: | ||
name: Python ${{ matrix.python_version }} - ${{ matrix.os }} - ${{ matrix.arch }} | ||
runs-on: ${{ matrix.os }} | ||
defaults: | ||
run: | ||
shell: bash -l {0} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
|
@@ -32,23 +29,17 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Setup Micromamba | ||
uses: mamba-org/setup-micromamba@v1 | ||
- uses: prefix-dev/[email protected] | ||
with: | ||
cache-downloads: true | ||
cache-environment: true | ||
environment-file: ./environment.yml | ||
create-args: >- | ||
python=${{ matrix.python_version }} | ||
- name: Install ribasim | ||
run: pip install --editable python/ribasim | ||
|
||
- name: Install ribasim_testmodels | ||
run: pip install --editable python/ribasim_testmodels | ||
pixi-version: latest | ||
cache: true | ||
- name: Prepare pixi | ||
run: | | ||
pixi install | ||
pixi run post-install | ||
- name: Run tests | ||
run: pytest --cov=ribasim --cov-report=xml python/ribasim/tests | ||
run: pixi run test-ribasim-python-cov | ||
|
||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v3 |
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 |
---|---|---|
|
@@ -155,3 +155,5 @@ dmypy.json | |
.vscode/settings.json | ||
|
||
/.luarc.json | ||
build/ribasim_cli/tests/temp/ | ||
report.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
Oops, something went wrong.