-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #84. This adds a Pixi `dev` environment, which points to the Ribasim repository, which is expected to be cloned next to this repository. To launch VSCode in this environment, use `open-vscode-dev.bat`. I added `open-vscode.bat` as well to open the default environment, which points to the latest ribasim release. https://pixi.sh/latest/reference/configuration/#the-feature-and-environments-tables
- Loading branch information
Showing
7 changed files
with
6,498 additions
and
132 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 |
---|---|---|
|
@@ -15,22 +15,36 @@ jobs: | |
permissions: | ||
contents: write | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Checkout Ribasim-NL | ||
uses: actions/checkout@v4 | ||
with: | ||
path: Ribasim-NL | ||
|
||
# Ribasim needs to be checked out next to this repo even for the prod environment | ||
- name: Checkout Ribasim | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: Deltares/Ribasim | ||
path: Ribasim | ||
|
||
- uses: prefix-dev/[email protected] | ||
with: | ||
manifest-path: Ribasim/pixi.toml | ||
pixi-version: "latest" | ||
|
||
- name: Check Quarto installation and all engines | ||
working-directory: Ribasim-NL | ||
run: pixi run quarto-check | ||
|
||
- name: Render Quarto Project | ||
working-directory: Ribasim-NL | ||
run: pixi run quarto-render | ||
|
||
- name: Publish Quarto Project | ||
if: github.ref == 'refs/heads/main' | ||
uses: peaceiris/actions-gh-pages@v4 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: ./docs/_site | ||
publish_dir: Ribasim-NL/docs/_site | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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 |
---|---|---|
|
@@ -15,10 +15,23 @@ jobs: | |
runs-on: ubuntu-latest | ||
continue-on-error: true | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Checkout Ribasim-NL | ||
uses: actions/checkout@v4 | ||
with: | ||
path: Ribasim-NL | ||
|
||
# Ribasim needs to be checked out next to this repo even for the prod environment | ||
- name: Checkout Ribasim | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: Deltares/Ribasim | ||
path: Ribasim | ||
|
||
- uses: prefix-dev/[email protected] | ||
with: | ||
manifest-path: Ribasim-NL/pixi.toml | ||
pixi-version: "latest" | ||
|
||
- name: Run mypy on hydamo | ||
run: | | ||
pixi run mypy-hydamo | ||
working-directory: Ribasim-NL | ||
run: pixi run mypy-hydamo |
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 |
---|---|---|
|
@@ -21,12 +21,25 @@ jobs: | |
arch: | ||
- x86 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Checkout Ribasim-NL | ||
uses: actions/checkout@v4 | ||
with: | ||
path: Ribasim-NL | ||
|
||
# Ribasim needs to be checked out next to this repo even for the prod environment | ||
- name: Checkout Ribasim | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: Deltares/Ribasim | ||
path: Ribasim | ||
|
||
- uses: prefix-dev/[email protected] | ||
with: | ||
manifest-path: Ribasim-NL/pixi.toml | ||
pixi-version: "latest" | ||
|
||
- name: Run tests | ||
working-directory: Ribasim-NL | ||
run: pixi run test-hydamo | ||
env: | ||
RIBASIM_NL_CLOUD_PASS: ${{ secrets.RIBASIM_NL_CLOUD_PASS }} | ||
|
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 @@ | ||
pixi run --environment=dev code . | exit |
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 @@ | ||
pixi run code . | exit |
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