Skip to content

Commit

Permalink
feat(makefile): Add optional variable to create conda env
Browse files Browse the repository at this point in the history
  • Loading branch information
esloch committed Dec 1, 2023
1 parent 3c9d729 commit 8e20eac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
curl -sSL https://install.python-poetry.org/ | python -
export PATH="$HOME/.poetry/bin:$PATH"
poetry config virtualenvs.create false
make conda-install-main
make conda-install-main ENVCREATE=conda-env
- name: Lint with flake8
run: |
Expand Down
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,16 @@ SEMANTIC_RELEASE = npx --yes \
-p "semantic-release-replace-plugin" \
semantic-release

ENVCREATE:=

# Create a Conda environment and install dependencies for development.
.PHONY: conda-env
conda-env:
mamba env create -f conda/dev.yaml --force

# Install main project dependencies using Poetry.
.PHONY: conda-install-main
conda-install-main: conda-env
.PHONY: conda-install-main
conda-install-main: ${ENVCREATE}
conda run -n pysus poetry install --only main

.PHONY: conda-install-docs
Expand Down

0 comments on commit 8e20eac

Please sign in to comment.