Skip to content

Commit

Permalink
Let environment.yml be a kitchen sink for everything Python (#120)
Browse files Browse the repository at this point in the history
Everything means for now:
- Ribasim Python
- Docs
- libribasim testbench
  • Loading branch information
Hofer-Julian authored Mar 17, 2023
1 parent 3b73cc6 commit cc34228
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ jobs:
runs-on: ubuntu-latest
permissions:
contents: write
defaults:
run:
shell: bash -l {0}
strategy:
matrix:
julia_version:
Expand All @@ -20,13 +23,16 @@ jobs:
- x64
steps:
- uses: actions/checkout@v3

- uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.julia_version }}
arch: ${{ matrix.arch }}

- uses: julia-actions/julia-buildpkg@v1
with:
project: core

- uses: actions/cache@v1
env:
cache-name: cache-artifacts
Expand All @@ -37,11 +43,13 @@ jobs:
${{ runner.os }}-test-${{ env.cache-name }}-
${{ runner.os }}-test-
# setup Python / Jupyter
- uses: actions/setup-python@v4
- name: Setup Micromamba
uses: mamba-org/provision-with-micromamba@main
with:
python-version: "${{ matrix.python_version }}"
- run: pip install jupyter quartodoc xarray
python_version: ${{ matrix.python_version }}
cache-downloads: true
cache-env: true
environment-file: ./python/environment.yml

- name: Install ribasim-python
working-directory: python
Expand Down
5 changes: 5 additions & 0 deletions python/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,15 @@ channels:
dependencies:
- black
- geopandas
- jupyterlab
- matplotlib
- mypy
- pandas
- pandera
- pip
- pip:
- xmipy
- quartodoc
- pyarrow
- pydantic
- pyogrio
Expand Down

0 comments on commit cc34228

Please sign in to comment.