Skip to content

Commit

Permalink
Move to setup-micromamba (#242)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hofer-Julian authored May 23, 2023
1 parent e64d683 commit eaa1c0a
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 13 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/core_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Setup Micromamba
uses: mamba-org/provision-with-micromamba@v15
uses: mamba-org/setup-micromamba@v1
with:
cache-downloads: true
cache-env: true
cache-environment: true
environment-file: ./environment.yml
- name: Install ribasim
run: pip install --editable python/ribasim
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ jobs:
${{ runner.os }}-test-
- name: Setup Micromamba
uses: mamba-org/provision-with-micromamba@v15
uses: mamba-org/setup-micromamba@v1
with:
cache-downloads: true
cache-env: true
cache-environment: true
environment-file: ./environment.yml

- name: Install ribasim-python
Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/python_lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Setup Micromamba
uses: mamba-org/provision-with-micromamba@v15
uses: mamba-org/setup-micromamba@v1
with:
cache-downloads: true
cache-env: true
cache-environment: true
environment-file: ./environment.yml

- name: Run black
Expand All @@ -40,9 +40,8 @@ jobs:
- name: Setup Micromamba
uses: mamba-org/provision-with-micromamba@v15
with:
python_version: ${{ matrix.python_version }}
cache-downloads: true
cache-env: true
cache-environment: true
environment-file: ./environment.yml
- name: Run ruff
run: |
Expand All @@ -61,9 +60,8 @@ jobs:
- name: Setup Micromamba
uses: mamba-org/provision-with-micromamba@v15
with:
python_version: ${{ matrix.python_version }}
cache-downloads: true
cache-env: true
cache-environment: true
environment-file: ./environment.yml
- name: Install python packages
run: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/python_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@ jobs:
- uses: actions/checkout@v3

- name: Setup Micromamba
uses: mamba-org/provision-with-micromamba@v15
uses: mamba-org/setup-micromamba@v1
with:
cache-downloads: true
cache-env: true
cache-environment: true
environment-file: ./environment.yml
extra-specs: |
create-args: >-
python=${{ matrix.python_version }}
- name: Install ribasim
Expand Down

0 comments on commit eaa1c0a

Please sign in to comment.