Skip to content

Commit

Permalink
use mamba in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
k-dominik committed Feb 3, 2022
1 parent c1717a2 commit 88df0d5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ jobs:
- v1-repo-{{ .Environment.CIRCLE_SHA1 }}
- restore_cache:
keys:
- v9-dependencies-{{ checksum "environment.yml" }}
- v10-dependencies-{{ checksum "environment.yml" }}

- run: conda config --set channel_priority strict
- run: conda install -c conda-forge conda-build make
- run: conda install -c conda-forge conda-build make mamba
- run: |
if [ ! -d ${TIKTORCH_ENV_PREFIX} ]; then
echo "Creating new environment ${TIKTORCH_ENV_NAME}"
Expand All @@ -39,7 +39,7 @@ jobs:
- save_cache:
paths:
- /opt/conda/envs
key: v9-dependencies-{{ checksum "environment.yml" }}
key: v10-dependencies-{{ checksum "environment.yml" }}

black_check:
docker:
Expand All @@ -51,7 +51,7 @@ jobs:
- v1-repo-{{ .Environment.CIRCLE_SHA1 }}
- restore_cache:
keys:
- v9-dependencies-{{ checksum "environment.yml" }}
- v10-dependencies-{{ checksum "environment.yml" }}

- run:
name: run black
Expand All @@ -70,7 +70,7 @@ jobs:
- v1-repo-{{ .Environment.CIRCLE_SHA1 }}
- restore_cache:
keys:
- v9-dependencies-{{ checksum "environment.yml" }}
- v10-dependencies-{{ checksum "environment.yml" }}

- run:
name: run flake8
Expand All @@ -89,7 +89,7 @@ jobs:
- v1-repo-{{ .Environment.CIRCLE_SHA1 }}
- restore_cache:
keys:
- v9-dependencies-{{ checksum "environment.yml" }}
- v10-dependencies-{{ checksum "environment.yml" }}

- run:
name: run tests
Expand All @@ -109,7 +109,7 @@ jobs:
- v1-repo-{{ .Environment.CIRCLE_SHA1 }}
- restore_cache:
keys:
- v9-dependencies-{{ checksum "environment.yml" }}
- v10-dependencies-{{ checksum "environment.yml" }}

- run:
name: run isort
Expand All @@ -128,7 +128,7 @@ jobs:
- v1-repo-{{ .Environment.CIRCLE_SHA1 }}

- run: conda config --set channel_priority strict
- run: conda install -c conda-forge conda-build anaconda-client
- run: conda install -c conda-forge mamba conda-build anaconda-client boa
- run:
name: build packages
command: |
Expand Down
2 changes: 1 addition & 1 deletion scripts/conda_build.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/sh -e

conda build -c pytorch -c conda-forge --user "$CONDA_USER" --token "$CONDA_TOKEN" "$@"
conda mambabuild -c pytorch -c conda-forge --user "$CONDA_USER" --token "$CONDA_TOKEN" "$@"

0 comments on commit 88df0d5

Please sign in to comment.