-
Notifications
You must be signed in to change notification settings - Fork 5
62 lines (58 loc) · 1.73 KB
/
Copy pathci.yaml
File metadata and controls
62 lines (58 loc) · 1.73 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
name: CI
on:
pull_request:
push:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
duckdb-version: "1.2.0"
jobs:
test:
name: Test
runs-on: ${{ matrix.os.runner }}
env:
DUCKDB_LIB_DIR: ${{ github.workspace }}/opt/duckdb
LD_LIBRARY_PATH: ${{ github.workspace }}/opt/duckdb
DYLD_LIBRARY_PATH: ${{ github.workspace }}/opt/duckdb
strategy:
fail-fast: false
matrix:
python-version:
- "3.11"
- "3.12"
- "3.13"
os:
- runner: ubuntu-latest
duckdb-slug: linux-amd64
- runner: macos-latest
duckdb-slug: osx-universal
# https://github.com/stac-utils/rustac-py/issues/1
# - windows-latest
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v3
- uses: Swatinem/rust-cache@v2
- name: Install Python version
run: uv python install ${{ matrix.python-version }}
- name: Install libduckdb
run: |
wget https://github.com/duckdb/duckdb/releases/download/v${{ env.duckdb-version }}/libduckdb-${{ matrix.os.duckdb-slug }}.zip
mkdir -p ${{ github.workspace }}/opt/duckdb
unzip libduckdb-${{ matrix.os.duckdb-slug }}.zip -d ${{ github.workspace }}/opt/duckdb
- name: Sync
run: uv sync --all-extras
- name: Lint
run: scripts/lint
- name: Test
run: scripts/test
- name: Sync w/o extras
run: uv sync
- name: Test w/o extras
run: uv run pytest
- name: Check docs
# not worth it to install cairo on macos
if: runner.os == 'ubuntu-latest'
run: uv run mkdocs build --strict