-
Notifications
You must be signed in to change notification settings - Fork 99
55 lines (46 loc) · 1.38 KB
/
python-package-conda.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Python Package using Conda
on: [push]
jobs:
build-linux:
runs-on: ubuntu-latest
strategy:
max-parallel: 5
defaults:
run:
shell: bash -el {0} # use default shell
steps:
- 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
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!
- name: Install atlas
run: |
echo "You are using env '$CONDA_PREFIX'"
python -m pip install . --no-deps -vv
- name: Test atlas
run: |
atlas --help
atlas --version
- name: Import atlas
run: |
python -c "from atlas import utils"
- name: Dryrun
run: |
test/dryrun.sh