Skip to content

Commit bc3e52c

Browse files
committed
Update build.yaml github action for conda packages
1 parent e4d4760 commit bc3e52c

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

.github/workflows/build.yaml

+8-9
Original file line numberDiff line numberDiff line change
@@ -27,32 +27,31 @@ jobs:
2727
run:
2828
shell: bash -l {0}
2929
env:
30-
CHANS_DEV: "-c pyviz/label/dev -c conda-forge"
3130
PKG_TEST_PYTHON: "--test-python=py38"
32-
PYTHON_VERSION: "3.8"
33-
CHANS: "-c pyviz"
3431
CONDA_UPLOAD_TOKEN: ${{ secrets.CONDA_UPLOAD_TOKEN }}
3532
steps:
3633
- uses: actions/checkout@v3
37-
- name: Fetch unshallow
38-
run: git fetch --prune --tags --unshallow -f
39-
- uses: actions/setup-python@v4
4034
with:
41-
python-version: ${{ matrix.python-version }}
35+
fetch-depth: "100"
4236
- uses: conda-incubator/setup-miniconda@v2
4337
with:
4438
miniconda-version: "latest"
4539
python-version: 3.8
40+
channels: pyviz/label/dev,conda-forge,nodefaults
41+
- name: Fetch unshallow
42+
run: git fetch --prune --tags --unshallow -f
4643
- name: Set output
4744
id: vars
4845
run: echo "tag=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT
4946
- name: conda setup
5047
run: |
51-
conda config --set always_yes True
5248
conda install -c pyviz "pyctdev>=0.5"
5349
doit ecosystem_setup
50+
- name: doit env_capture
51+
run: |
52+
doit env_capture
5453
- name: conda build
55-
run: doit package_build $CHANS_DEV $PKG_TEST_PYTHON --test-group=all
54+
run: doit package_build $PKG_TEST_PYTHON --test-group=all
5655
- name: conda dev upload
5756
if: (github.event_name == 'push' && (contains(steps.vars.outputs.tag, 'a') || contains(steps.vars.outputs.tag, 'b') || contains(steps.vars.outputs.tag, 'rc')))
5857
run: doit package_upload --token=$CONDA_UPLOAD_TOKEN --label=dev

0 commit comments

Comments
 (0)