11name : Conda build
2+
23on :
34 push :
4- branches :
5- - main
5+ branches : [main]
6+ tags : ["*"]
67 pull_request :
7- paths :
8- - setup.py
9- - continuous_integration/recipes/**
10- - .github/workflows/conda.yml
11- - pyproject.toml
8+ workflow_dispatch :
129
1310# When this workflow is queued, automatically cancel any previous running
1411# or pending jobs from the same branch
1512concurrency :
1613 group : conda-${{ github.ref }}
1714 cancel-in-progress : true
1815
19- # Required shell entrypoint to have properly activated conda environments
20- defaults :
21- run :
22- shell : bash -l {0}
23-
2416jobs :
2517 conda :
2618 name : Build (and upload)
@@ -29,51 +21,29 @@ jobs:
2921 - uses : actions/checkout@v6.0.2
3022 with :
3123 fetch-depth : 0
32- - name : Set up Python
33- uses : conda-incubator/setup-miniconda@v4.0.1
34- with :
35- miniforge-version : latest
36- use-mamba : true
37- python-version : 3.9
38- channel-priority : strict
39- - name : Install dependencies
40- run : |
41- mamba install -c conda-forge boa conda-verify
42-
43- which python
44- pip list
45- mamba list
46- - name : Build conda packages
47- run : |
48- # suffix for pre-release package versions
49- export VERSION_SUFFIX=a`date +%y%m%d`
5024
51- # conda search for the latest dask-core pre-release
52- dask_core_arr=($(conda search --override-channels -c dask/label/dev dask-core | tail -n 1))
25+ - uses : prefix-dev/setup-pixi@v0
26+ with :
27+ pixi-version : v0.69.0
28+ environments : build
29+ cache : true
30+ locked : true
5331
54- # extract dask-core pre-release version
55- export DASK_CORE_VERSION=${dask_core_arr[1]}
32+ - name : Build conda package
33+ run : pixi r conda-build
5634
57- # distributed pre-release build
58- conda mambabuild continuous_integration/recipes/distributed \
59- --channel dask/label/dev \
60- --no-anaconda-upload \
61- --output-folder .
35+ - name : Upload conda build artifact
36+ uses : actions/upload-artifact@v7
37+ with :
38+ name : conda-channel
39+ path : dist/conda
40+ if-no-files-found : error
6241
63- # dask pre-release build
64- conda mambabuild continuous_integration/recipes/dask \
65- --channel dask/label/dev \
66- --no-anaconda-upload \
67- --output-folder .
6842 - name : Upload conda packages
6943 if : |
7044 github.event_name == 'push'
7145 && github.ref == 'refs/heads/main'
7246 && github.repository == 'dask/distributed'
7347 env :
7448 ANACONDA_API_TOKEN : ${{ secrets.DASK_CONDA_TOKEN }}
75- run : |
76- # install anaconda for upload
77- mamba install -c conda-forge anaconda-client
78-
79- anaconda upload --label dev noarch/*.tar.bz2
49+ run : pixi r conda-upload
0 commit comments