Skip to content

tiledb-py

tiledb-py #780

Workflow file for this run

name: tiledb-py
on:
# This job depends on a previous passing run of TileDB conda nightly.
# Schedule for conda nightly against TileDB-Py should begin after TileDB core.
schedule:
- cron: "0 3 * * *" # Every night at 3 AM UTC (10 PM EST; 11 PM EDT)
workflow_dispatch:
jobs:
tiledb-py:
runs-on: ubuntu-latest
name: tiledb-py
env:
TZ: "America/New_York"
steps:
- name: Clone nightlies CI repo
uses: actions/checkout@v4
with:
repository: TileDB-Inc/conda-forge-nightly-controller
path: ci
- name: Clone feedstock
uses: actions/checkout@v4
with:
repository: TileDB-Inc/tiledb-py-feedstock
ref: main
path: tiledb-py-feedstock
ssh-key: ${{ secrets.SSH_PRIVATE_KEY_TILEDB_PY }}
- name: Clone source
uses: actions/checkout@v4
with:
repository: TileDB-Inc/TileDB-Py
ref: dev
path: TileDB-Py
fetch-depth: 0 # fetch everything
- name: Obtain date
run: bash ci/scripts/obtain-date.sh
- name: Install conda-smithy and deps with micromamba
uses: mamba-org/setup-micromamba@v1
with:
environment-name: env
create-args: >-
conda-smithy
cmake
cython
jsonschema
numpy
pybind11
ruamel.yaml
ruamel.yaml.jinja2
setuptools
setuptools-scm
wheel
cache-environment: true
- name: Update conda-smithy
shell: bash -l {0}
run: micromamba update --yes conda-smithy
- name: Obtain version
shell: bash -l {0}
run: bash ci/scripts/tiledb-py/obtain-version.sh
- name: Obtain commit
run: bash ci/scripts/obtain-commit.sh TileDB-Py
- name: Pull from upstream feedstock
run: bash ci/scripts/pull-upstream-feedstock.sh tiledb-py-feedstock
- name: Update recipe
shell: bash -l {0}
run: python ci/scripts/tiledb-py/update-recipe.py
- name: Print recipe diff
run: git -C tiledb-py-feedstock/ --no-pager diff recipe/
- name: Update channels
run: bash ci/scripts/update-channels.sh tiledb-py-feedstock
- name: Add and commit
run: bash ci/scripts/add-and-commit.sh tiledb-py-feedstock
- name: Rerender feedstock
shell: bash -l {0}
run: bash ci/scripts/rerender-feedstock.sh tiledb-py-feedstock
- name: Push update to GitHub
if: github.ref == 'refs/heads/main' && github.repository_owner == 'TileDB-Inc' && github.event_name != 'pull_request'
run: bash ci/scripts/push-update.sh tiledb-py-feedstock
issue:
permissions:
issues: write
runs-on: ubuntu-latest
needs: tiledb-py
if: ( failure() || cancelled() ) && github.repository_owner == 'TileDB-Inc' && github.event_name == 'schedule'
steps:
- uses: actions/checkout@v4
- name: Open Issue
uses: TileDB-Inc/github-actions/open-issue@main
with:
name: nightly TileDB-Py setup
label: bug,scheduled,tiledb-py
assignee: shaunrd0,ihnorton,jdblischak
env:
TZ: "America/New_York"