-
Notifications
You must be signed in to change notification settings - Fork 36
114 lines (99 loc) · 3.43 KB
/
daily-test-build-numpy.yml
File metadata and controls
114 lines (99 loc) · 3.43 KB
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
name: TileDB Python CI - With Earliest Supported Version of NumPy
on:
workflow_dispatch:
inputs:
libtiledb_version:
description: TileDB Core Version
required: true
type: string
workflow_call:
inputs:
libtiledb_version:
required: true
type: string
jobs:
test:
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash
strategy:
matrix:
os: [ubuntu-latest, macos-15-intel, macos-26, windows-latest]
py_np_combo:
- { python-version: "3.9", numpy-version: "1.25.2" }
- { python-version: "3.9", numpy-version: "2.0.2" }
- { python-version: "3.10", numpy-version: "1.25.2" }
- { python-version: "3.10", numpy-version: "2.2.6" }
- { python-version: "3.11", numpy-version: "1.25.2" }
- { python-version: "3.11", numpy-version: "2.3.4" }
- { python-version: "3.12", numpy-version: "1.26.4" }
- { python-version: "3.12", numpy-version: "2.3.4" }
- { python-version: "3.13", numpy-version: "2.1.3" }
- { python-version: "3.13", numpy-version: "2.3.4" }
- { python-version: "3.14", numpy-version: "2.3.4" }
fail-fast: false
env:
TILEDB_VERSION: ${{ inputs.libtiledb_version }}
MACOSX_DEPLOYMENT_TARGET: "11"
VCPKG_BINARY_SOURCES: 'clear;x-gha,readwrite'
steps:
- name: Checkout TileDB-Py `main`
uses: actions/checkout@v6
- name: Setup MSVC toolset (VS 2022)
uses: TheMrMilchmann/setup-msvc-dev@v3
if: startsWith(matrix.os, 'windows')
with:
arch: x64
- name: Install Ninja (VS 2022)
uses: seanmiddleditch/gha-setup-ninja@v4
if: startsWith(matrix.os, 'windows')
- name: Enable vcpkg binary caching
uses: actions/github-script@v8
with:
script: |
core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || '');
core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || '');
- name: "Set CMAKE_GENERATOR"
run: export CMAKE_GENERATOR="Ninja"
if: startsWith(matrix.os, 'windows')
- name: Set up Python ${{ matrix.py_np_combo.python-version }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.py_np_combo.python-version }}
- name: Print Python version
run: |
which python
which pip
python --version
- name: Print env
run: printenv
- name: Checkout TileDB-Py `main`
uses: actions/checkout@v6
- name: Build TileDB-Py
run: pip install --verbose .[test]
- name: Install Numpy
run: |
pip install numpy==${{ matrix.py_np_combo.numpy-version }}
- name: Print installed Python dependencies
run: pip list
- name: Run tests
run: |
PROJECT_CWD=$PWD
rm tiledb/__init__.py
cd /tmp
pytest -vv --showlocals $PROJECT_CWD
create_issue_on_fail:
permissions:
issues: write
runs-on: ubuntu-latest
needs: test
if: failure() || cancelled()
steps:
- uses: actions/checkout@v6
- name: Create Issue if Build Fails
uses: TileDB-Inc/github-actions/open-issue@main
with:
name: nightly build with earliest supported numpy
label: bug,nightly-failure
assignee: kounelisagis,ypatia,ihnorton