| 1 |
name: Continuous Integration |
| 2 |
|
| 3 |
on: |
| 4 |
push: |
| 5 |
branches: |
| 6 |
- '*' |
| 7 |
pull_request: |
| 8 |
branches: |
| 9 |
- '*' |
| 10 |
schedule: |
| 11 |
- cron: '59 21 * * *' |
| 12 |
workflow_dispatch: |
| 13 |
inputs: |
| 14 |
version: |
| 15 |
description: Manual Test Run |
| 16 |
default: test |
| 17 |
required: false |
| 18 |
|
| 19 |
jobs: |
| 20 |
unittests: |
| 21 |
env: |
| 22 |
FETCH_DATA: python -c 'from libpysal.examples import load_example as ex; [ex(e) for e in ["columbus", "desmith", "sids2", "stl", "Sacramento1"]]' |
| 23 |
RUN_TEST: pytest esda -v -r a -n auto --cov esda --cov-report xml --color yes --cov-append --cov-report term-missing |
| 24 |
name: CI (${{ matrix.os }}, ${{ matrix.environment-file }}) |
| 25 |
runs-on: ${{ matrix.os }} |
| 26 |
timeout-minutes: 25 |
| 27 |
strategy: |
| 28 |
matrix: |
| 29 |
os: [ubuntu-latest] |
| 30 |
environment-file: |
| 31 |
- ci/311-oldest.yaml |
| 32 |
- ci/311-numba-oldest.yaml |
| 33 |
- ci/311-latest.yaml |
| 34 |
- ci/311-numba-latest.yaml |
| 35 |
- ci/312-latest.yaml |
| 36 |
- ci/312-numba-latest.yaml |
| 37 |
- ci/313-latest.yaml |
| 38 |
- ci/313-numba-latest.yaml |
| 39 |
- ci/314-min.yaml |
| 40 |
- ci/314-latest.yaml |
| 41 |
- ci/314-dev.yaml |
| 42 |
- ci/314-numba-dev.yaml |
| 43 |
include: |
| 44 |
- environment-file: ci/314-numba-latest.yaml |
| 45 |
os: macos-15-intel # Intel |
| 46 |
- environment-file: ci/314-numba-latest.yaml |
| 47 |
os: macos-latest # Apple Silicon |
| 48 |
- environment-file: ci/314-numba-latest.yaml |
| 49 |
os: windows-latest |
| 50 |
fail-fast: false |
| 51 |
defaults: |
| 52 |
run: |
| 53 |
shell: bash -l {0} |
| 54 |
|
| 55 |
steps: |
| 56 |
- name: checkout repo |
| 57 |
uses: actions/checkout@v6 |
| 58 |
- name: setup micromamba |
| 59 |
uses: mamba-org/setup-micromamba@v2 |
| 60 |
with: |
| 61 |
micromamba-version: 'latest' |
| 62 |
environment-file: ${{ matrix.environment-file }} |
| 63 |
|
| 64 |
- name: environment info |
| 65 |
run: | |
| 66 |
micromamba info |
| 67 |
micromamba list |
| 68 |
|
| 69 |
- name: spatial versions |
| 70 |
run: 'python -c "import geopandas; geopandas.show_versions();"' |
| 71 |
|
| 72 |
- name: run tests - bash |
| 73 |
run: | |
| 74 |
${{ env.FETCH_DATA }} |
| 75 |
${{ env.RUN_TEST }} |
| 76 |
|
| 77 |
- name: ${{ matrix.os }}, ${{ matrix.environment-file }} |
| 78 |
uses: codecov/codecov-action@v5 |
| 79 |
with: |
| 80 |
token: ${{ secrets.CODECOV_TOKEN }} |
| 81 |
name: esda-codecov |