-
-
Notifications
You must be signed in to change notification settings - Fork 27
72 lines (64 loc) · 2.01 KB
/
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
name: Conda build
on:
push:
branches:
- main
tags:
- "*"
pull_request:
paths:
- setup.py
- ci/recipe/**
- .github/workflows/conda.yml
- pyproject.toml
# When this workflow is queued, automatically cancel any previous running
# or pending jobs from the same branch
concurrency:
group: conda-${{ github.ref }}
cancel-in-progress: true
# Required shell entrypoint to have properly activated conda environments
defaults:
run:
shell: bash -l {0}
jobs:
conda:
name: Build (and upload)
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
fetch-depth: 0
- name: Set up Python
uses: conda-incubator/[email protected]
with:
miniforge-version: latest
use-mamba: true
python-version: 3.9
channel-priority: strict
- name: Install dependencies
run: |
mamba install -c conda-forge boa conda-verify
which python
pip list
mamba list
- name: Build conda packages
run: |
# suffix for pre-release package versions
export VERSION_SUFFIX=a`date +%y%m%d`
# conda search for the latest dask-core pre-release
arr=($(conda search --override-channels -c dask/label/dev dask-core | tail -n 1))
# extract dask-core pre-release version / build
export DASK_CORE_VERSION=${arr[1]}
# distributed pre-release build
conda mambabuild ci/recipe \
--channel dask/label/dev \
--no-anaconda-upload \
--output-folder .
- name: Upload conda packages
if: github.event_name == 'push' && github.repository == 'dask/dask-expr'
env:
ANACONDA_API_TOKEN: ${{ secrets.DASK_CONDA_TOKEN }}
run: |
# install anaconda for upload
mamba install -c conda-forge anaconda-client
anaconda upload --label dev noarch/*.tar.bz2