forked from letsql/letsql
-
Notifications
You must be signed in to change notification settings - Fork 0
71 lines (59 loc) · 1.82 KB
/
ci-test.yml
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
name: ci-test
on:
push:
# Skip the backend suite if all changes are docs
paths-ignore:
- "docs/**"
- "**/*.md"
- "**/*.qmd"
- "*.md"
- "codecov.yml"
- ".envrc"
branches:
- main
- master
tags:
- '*'
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
linux:
runs-on: ubuntu-latest
strategy:
matrix:
target: [x86_64, x86, aarch64]
python-version: ["3.10", "3.11"]
steps:
- uses: actions/checkout@v4
- uses: extractions/setup-just@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: download test data
run: just download-data
- name: Rust latest
run: rustup update
- name: Install Poetry
uses: snok/install-poetry@v1
- name: Poetry install
run: poetry install --with="dev,test" --extras="duckdb snowflake datafusion examples"
working-directory: ${{ github.workspace }}
- name: maturin develop
run: poetry run maturin develop --release
working-directory: ${{ github.workspace }}
- name: start services
run: docker compose up --build --wait
- name: poetry pytest
run: poetry run pytest --import-mode=importlib --cov --cov-report=xml -k 'not script_execution'
working-directory: ${{ github.workspace }}
env:
POSTGRES_PASSWORD: ${{ secrets.POSTGRES_GH_PASSWORD }}
POSTGRES_USER: ${{ secrets.POSTGRES_GH_USER }}
POSTGRES_HOST: ${{ secrets.POSTGRES_GH_HOST }}
POSTGRES_PORT: ${{ secrets.POSTGRES_GH_PORT }}
POSTGRES_DATABASE: ${{ secrets.POSTGRES_GH_DATABASE }}
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}