Skip to content

Commit

Permalink
mamba unless conda
Browse files Browse the repository at this point in the history
  • Loading branch information
SilasK committed Oct 4, 2023
1 parent c09f310 commit 2dbfbef
Showing 1 changed file with 12 additions and 19 deletions.
31 changes: 12 additions & 19 deletions .github/workflows/python-package-conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,31 +15,24 @@ jobs:

- name: Checkout
uses: actions/[email protected]

- name: Setup_conda_and_cache
uses: actions/cache@v2
env:
# Increase this value to reset cache if etc/example-environment.yml has not changed
CACHE_NUMBER: 0
with:
path: ~/conda_pkgs_dir
key:
${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{
hashFiles('atlasenv.yml') }}
- uses: conda-incubator/setup-miniconda@v2

- name: Get current month
id: date
run: echo "date=$(date +%Y-%m)" >> "${GITHUB_OUTPUT}"

- uses: mamba-org/setup-micromamba@v1
with:
activate-environment: atlasenv
use-mamba: true
python-version: 3.11
mamba-version: "*"
channels: conda-forge,bioconda,defaults
environment-file: atlasenv.yml
use-only-tar-bz2: true # IMPORTANT: This needs to be set for caching to work properly!
#environment-name: atlasenv
# persist on the same month.
cache-environment-key: environment-${{ steps.date.outputs.date }}
cache-downloads-key: downloads-${{ steps.date.outputs.date }}

- name: check mamba
run: mamba --help

- name: Install atlas
run: |
echo "You are using env '$CONDA_PREFIX'"
python -m pip install . --no-deps -vv
- name: Test atlas
run: |
Expand Down

0 comments on commit 2dbfbef

Please sign in to comment.