Skip to content

.github/workflows/daily-test-build.yml #1040

.github/workflows/daily-test-build.yml

.github/workflows/daily-test-build.yml #1040

name: Daily Test Build TileDB-Py Against Core
#on: [push]
on:
workflow_dispatch:
schedule:
# runs every day at 5:00 UTC (1:00AM EST / Midnight CST)
- cron: "0 5 * * *"
jobs:
test-wheels-on-azure:
runs-on: ubuntu-latest
defaults:
run:
shell: bash
steps:
- name: Get current date
id: date
run: echo "::set-output name=date::$(date +'%a-%Y-%m-%d')"
- name: Get libtiledb short SHA
run: echo "LIBTILEDB_SHA=$(git ls-remote https://github.com/TileDB-Inc/TileDB HEAD | cut -c1-7)" >> $GITHUB_ENV
- name: Create Test Branch for Azure Wheel Nightly Build
uses: peterjgrainger/action-create-branch@v2.0.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
branch: "azure-wheel-test-${{ steps.date.outputs.date }}-against-${{ env.LIBTILEDB_SHA }}"
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-11, windows-latest]
libtiledb_version: ["dev", "release-2.16"]
uninstall_pandas: [true, false]
fail-fast: false
env:
TILEDB_VERSION: ${{ matrix.libtiledb_version }}
MACOSX_DEPLOYMENT_TARGET: "10.15"
steps:
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.11"
- name: Print Python version
run: |
which python
which pip
python --version
- name: Print env
run: printenv
# Remove after upstream PR fully-deployed:
# - https://github.com/actions/runner-images/pull/7125
- name: "Install homebrew dependencies"
run: brew install pkg-config
if: matrix.os == 'macos-11'
- name: Checkout TileDB-Py `dev`
uses: actions/checkout@v3
- name: Install dependencies
run: python -m pip install --upgrade -r misc/requirements_ci.txt
- name: Test without pandas
run: python -m pip uninstall -y pandas
if: ${{ matrix.uninstall_pandas }}
- name: Build TileDB-Py
run: |
python setup.py build_ext --inplace --werror
python setup.py develop
env:
TILEDB_FORCE_ALL_DEPS: True
- name: Test TileDB-Py
run: pytest -vv
create_issue_on_fail:
permissions:
issues: write
runs-on: ubuntu-latest
needs: test
if: failure() || cancelled()
steps:
- uses: actions/checkout@v3
- name: Create Issue if Build Fails
uses: TileDB-Inc/github-actions/open-issue@main
with:
name: nightly build
label: bug,nightly-failure
assignee: nguyenv,ihnorton