Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detectree2 Conda packaging #129

Draft
wants to merge 20 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/workflows/conda.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Python Package Using Conda

on:
push:
branches: [ "matt/conda" ]

permissions:
contents: read

jobs:
build-linux:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ '3.9' ]

steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
$CONDA/bin/conda install mamba -n base -c conda-forge
$CONDA/bin/mamba env create -f conda/environment.yaml
$CONDA/bin/activate detectree
- name: Install detectree2
run: |
which conda
which pip
$CONDA/bin/conda env list
$CONDA/bin/pip install .

18 changes: 18 additions & 0 deletions conda/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Conda

## Conda / mamba install
It is recommended to install mamba to speed up build process.

`mamba create --name detectenv --file conda-linux-64.lock`


## Update conda install

Re-generate Conda lock file(s) based on environment.yml

`conda-lock -k explicit --conda mamba`

Update Conda packages based on re-generated lock file

`mamba update --file conda-linux-64.lock`

Loading