Debian Codegraph @

.github/workflows/conda.yml

raw
1 name: Conda build
2 on:
3 push:
4 branches:
5 - main
6 tags:
7 - "*"
8 pull_request:
9 paths:
10 - setup.py
11 - continuous_integration/recipe/**
12 - .github/workflows/conda.yml
13 - pyproject.toml
14
15 # When this workflow is queued, automatically cancel any previous running
16 # or pending jobs from the same branch
17 concurrency:
18 group: conda-${{ github.ref }}
19 cancel-in-progress: true
20
21 # Required shell entrypoint to have properly activated conda environments
22 defaults:
23 run:
24 shell: bash -l {0}
25
26 jobs:
27 conda:
28 name: Build (and upload)
29 runs-on: ubuntu-latest
30 steps:
31 - uses: actions/[email protected]
32 with:
33 fetch-depth: 0
34 - name: Set up Python
35 uses: conda-incubator/[email protected]
36 with:
37 miniforge-version: latest
38 use-mamba: true
39 python-version: 3.9
40 channel-priority: strict
41 - name: Install dependencies
42 run: |
43 mamba install -c conda-forge boa conda-verify
44
45 which python
46 pip list
47 mamba list
48 - name: Build conda package
49 run: |
50 # suffix for nightly package versions
51 export VERSION_SUFFIX=a`date +%y%m%d`
52
53 conda mambabuild continuous_integration/recipe \
54 --no-anaconda-upload \
55 --output-folder .
56 - name: Upload conda package
57 if: github.event_name == 'push' && github.repository == 'dask/dask'
58 env:
59 ANACONDA_API_TOKEN: ${{ secrets.DASK_CONDA_TOKEN }}
60 run: |
61 # install anaconda for upload
62 mamba install -c conda-forge anaconda-client
63
64 anaconda upload --label dev noarch/*.tar.bz2