Skip to content

icechunk output: use seconds instead of ms in timedelta #147

icechunk output: use seconds instead of ms in timedelta

icechunk output: use seconds instead of ms in timedelta #147

Workflow file for this run

name: Build
on:
workflow_dispatch:
pull_request:
branches: [ "main" ]
jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
# macos-13 is intel, macos-14 is apple silicon, windows-11-arm
os: [ubuntu-latest, ubuntu-24.04-arm, windows-latest, windows-11-arm]
steps:
- uses: actions/checkout@v4
- name: Set-up on MacOS
if: ${{ matrix.os == 'macos-14' }}
run: |
brew install libomp
- name: Build wheels
uses: pypa/cibuildwheel@v3.2.1
env:
CIBW_ARCHS: auto64 # Don't build 32 bits wheels
CIBW_SKIP: pp* # Don't build pypy wheels
CIBW_ENVIRONMENT: "ITZI_BDIST_WHEEL=1 NO_STABLE_ABI=1" # Trigger generic compiler flags
CIBW_ENVIRONMENT_MACOS: >
MACOSX_DEPLOYMENT_TARGET=14.0
ITZI_BDIST_WHEEL=1
NO_STABLE_ABI=1
CIBW_BEFORE_TEST: "pip install pytest pytest-benchmark pandas"
CIBW_TEST_SOURCES: tests
CIBW_TEST_COMMAND: > # Fast tests which do not require GRASS
pytest tests/test_flow.py tests/test_analytic.py tests/test_rastermetrics.py
- uses: actions/upload-artifact@v4
with:
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
path: ./wheelhouse/*.whl
build_sdist:
name: Build source distribution
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build sdist
run: pipx run build --sdist
- uses: actions/upload-artifact@v4
with:
name: cibw-sdist
path: dist/*.tar.gz