Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Closes #xxxx

- [ ] Tests added / passed
- [ ] Passes `pre-commit run --all-files`
- [ ] Passes `pixi run lint`
68 changes: 19 additions & 49 deletions .github/workflows/conda.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,18 @@
name: Conda build

on:
push:
branches:
- main
branches: [main]
tags: ["*"]
pull_request:
paths:
- setup.py
- continuous_integration/recipes/**
- .github/workflows/conda.yml
- pyproject.toml
workflow_dispatch:

# 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)
Expand All @@ -29,51 +21,29 @@ jobs:
- uses: actions/checkout@v6.0.2
with:
fetch-depth: 0
- name: Set up Python
uses: conda-incubator/setup-miniconda@v4.0.1
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))
- uses: prefix-dev/setup-pixi@v0
with:
pixi-version: v0.69.0
environments: build
cache: true
locked: true

# extract dask-core pre-release version
export DASK_CORE_VERSION=${dask_core_arr[1]}
- name: Build conda package
run: pixi r conda-build

# distributed pre-release build
conda mambabuild continuous_integration/recipes/distributed \
--channel dask/label/dev \
--no-anaconda-upload \
--output-folder .
- name: Upload conda build artifact
uses: actions/upload-artifact@v7
with:
name: conda-channel
path: dist/conda
if-no-files-found: error

# 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
run: pixi r conda-upload
2 changes: 1 addition & 1 deletion .github/workflows/ssh_debug.yaml.donotrun
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,5 @@ jobs:
run: ssh -vvv $(hostname) 'echo hello world'

- name: Debug with tmate on failure
if: ${{ failure() }}
if: failure()
uses: mxschmitt/action-tmate@v3
Loading
Loading