Install tornado
from conda-forge
in Python 3.13 CI (#8951)
#2513
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Conda build | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
paths: | |
- setup.py | |
- continuous_integration/recipes/** | |
- .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 | |
dask_core_arr=($(conda search --override-channels -c dask/label/dev dask-core | tail -n 1)) | |
dask_expr_arr=($(conda search --override-channels -c dask/label/dev dask-expr | tail -n 1)) | |
# extract dask-core & dask-expr pre-release versions | |
export DASK_CORE_VERSION=${dask_core_arr[1]} | |
export DASK_EXPR_VERSION=${dask_expr_arr[1]} | |
# distributed pre-release build | |
conda mambabuild continuous_integration/recipes/distributed \ | |
--channel dask/label/dev \ | |
--no-anaconda-upload \ | |
--output-folder . | |
# dask pre-release build | |
conda mambabuild continuous_integration/recipes/dask \ | |
--channel dask/label/dev \ | |
--no-anaconda-upload \ | |
--output-folder . | |
- name: Upload conda packages | |
if: | | |
github.event_name == 'push' | |
&& github.ref == 'refs/heads/main' | |
&& github.repository == 'dask/distributed' | |
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 |