-
Notifications
You must be signed in to change notification settings - Fork 2
93 lines (93 loc) · 3.18 KB
/
tiledb-py.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
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"