Skip to content

Commit

Permalink
env file -> conda install to enable setting Python version in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
lbianchi-lbl committed Dec 7, 2024
1 parent 80cf00f commit 705250c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 14 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,14 +78,18 @@ jobs:
auto-update-conda: true
miniforge-version: latest
python-version: ${{ matrix.python-version }}
environment-file: environment-dev.yml
activate-environment: watertap-solvers-dev
- if: matrix.install-mode == 'dev'
run: |
conda install -c conda-forge cyipopt
- if: matrix.install-mode == 'standard'
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Display python version
run: python --version
- if: matrix.install-mode == 'dev'
name: Install (dev)
run: |
pip install -r requirements-dev.txt
- if: matrix.install-mode == 'standard'
name: Install (standard)
run: |
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
## Getting started (for contributors)

```sh
conda env create -n environment-dev.yml
conda create --yes -n watertap-solvers-dev -c conda-forge python=3.11
conda activate watertap-solvers-dev
conda install -c conda-forge cyipopt
pip install -r requirements-dev.txt

pytest --pyargs watertap_solvers -v
```
10 changes: 0 additions & 10 deletions environment-dev.yml

This file was deleted.

0 comments on commit 705250c

Please sign in to comment.