Add v1.18.2 to changelog (#6094) #222
Workflow file for this run
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: packages | |
on: | |
push: | |
tags: | |
- 'v[0-9]+.[0-9]+.[0-9]+' | |
- 'v[0-9]+.[0-9]+.[0-9]+a[0-9]+' | |
- 'v[0-9]+.[0-9]+.[0-9]+b[0-9]+' | |
- 'v[0-9]+.[0-9]+.[0-9]+rc[0-9]+' | |
# Dry-run only | |
workflow_dispatch: | |
schedule: | |
- cron: '0 14 * * SUN' | |
jobs: | |
conda_build: | |
name: Build Conda Packages | |
runs-on: 'ubuntu-latest' | |
defaults: | |
run: | |
shell: bash -l {0} | |
env: | |
CHANS_DEV: "-c pyviz/label/dev -c bokeh" | |
PKG_TEST_PYTHON: "--test-python=py39" | |
PYTHON_VERSION: "3.9" | |
CHANS: "-c pyviz" | |
MPLBACKEND: "Agg" | |
CONDA_UPLOAD_TOKEN: ${{ secrets.CONDA_UPLOAD_TOKEN }} | |
SETUPTOOLS_ENABLE_FEATURES: "legacy-editable" | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: "100" | |
- uses: conda-incubator/setup-miniconda@v2 | |
with: | |
miniconda-version: "latest" | |
python-version: ${{ env.PYTHON_VERSION }} | |
- name: Fetch unshallow | |
run: git fetch --prune --tags --unshallow -f | |
- name: Set output | |
id: vars | |
run: echo "tag=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT | |
- name: conda setup | |
run: | | |
conda config --set always_yes True | |
conda config --append channels pyviz/label/dev | |
conda config --append channels conda-forge | |
# pyct is for running setup.py | |
conda install -y conda-build anaconda-client build pyct | |
- name: conda build | |
run: | | |
bash ./scripts/build_conda.sh | |
- name: conda dev upload | |
if: (github.event_name == 'push' && (contains(steps.vars.outputs.tag, 'a') || contains(steps.vars.outputs.tag, 'b') || contains(steps.vars.outputs.tag, 'rc'))) | |
run: | | |
VERSION="$(echo "$(ls dist/*.whl)" | cut -d- -f2)" | |
FILE="$CONDA_PREFIX/conda-bld/noarch/holoviews-$VERSION-py_0.tar.bz2" | |
anaconda --token $CONDA_UPLOAD_TOKEN upload --user pyviz --label=dev $FILE | |
- name: conda main upload | |
if: (github.event_name == 'push' && !(contains(steps.vars.outputs.tag, 'a') || contains(steps.vars.outputs.tag, 'b') || contains(steps.vars.outputs.tag, 'rc'))) | |
run: | | |
VERSION="$(echo "$(ls dist/*.whl)" | cut -d- -f2)" | |
FILE="$CONDA_PREFIX/conda-bld/noarch/holoviews-$VERSION-py_0.tar.bz2" | |
anaconda --token $CONDA_UPLOAD_TOKEN upload --user pyviz --label=dev --label=main $FILE | |
pip_build: | |
name: Build PyPI Packages | |
runs-on: 'ubuntu-latest' | |
defaults: | |
run: | |
shell: bash -l {0} | |
env: | |
CHANS_DEV: "-c pyviz/label/dev -c bokeh" | |
PKG_TEST_PYTHON: "--test-python=py39" | |
PYTHON_VERSION: "3.9" | |
CHANS: "-c pyviz" | |
MPLBACKEND: "Agg" | |
PPU: ${{ secrets.PPU }} | |
PPP: ${{ secrets.PPP }} | |
PYPI: "https://upload.pypi.org/legacy/" | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: "100" | |
- uses: conda-incubator/setup-miniconda@v2 | |
with: | |
miniconda-version: "latest" | |
python-version: 3.9 | |
- name: Fetch unshallow | |
run: git fetch --prune --tags --unshallow -f | |
- name: conda setup | |
run: | | |
conda install -c pyviz "pyctdev>=0.5" | |
doit ecosystem_setup | |
doit env_create $CHANS_DEV --python=$PYTHON_VERSION | |
- name: env setup | |
run: | | |
conda activate test-environment | |
doit develop_install $CHANS_DEV | |
pip uninstall -y holoviews | |
doit pip_on_conda | |
- name: doit env_capture | |
run: | | |
conda activate test-environment | |
doit env_capture | |
- name: pip build | |
run: | | |
conda activate test-environment | |
doit ecosystem=pip package_build --test-group=simple | |
- name: pip upload | |
if: github.event_name == 'push' | |
run: | | |
conda activate test-environment | |
doit ecosystem=pip package_upload -u $PPU -p $PPP -r $PYPI |