Skip to content
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