-
Notifications
You must be signed in to change notification settings - Fork 37
76 lines (63 loc) · 1.94 KB
/
Copy pathci-test-examples.yml
File metadata and controls
76 lines (63 loc) · 1.94 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
63
64
65
66
67
68
69
70
71
72
73
74
75
name: ci-test-examples
on:
push:
branches:
- main
- master
tags:
- '*'
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
changes:
uses: ./.github/workflows/detect-changes.yml
permissions:
contents: read
pull-requests: read
linux:
needs: changes
if: needs.changes.outputs.code == 'true'
runs-on: ubuntu-latest
strategy:
matrix:
target: ["x86_64"]
python-version: ["3.11"]
steps:
- uses: actions/checkout@v6
- uses: extractions/setup-just@v4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: download test data
run: just download-data
- uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
enable-cache: true
- name: Install the project
run: uv sync --locked --extra examples --extra pyiceberg --extra postgres --extra sqlite --group dev --group test
working-directory: ${{ github.workspace }}
- name: start services
run: docker compose up --build --wait
- name: pytest
run: uv run --no-sync pytest --import-mode=importlib python/xorq/tests/test_examples.py -v --cov --cov-report=xml
working-directory: ${{ github.workspace }}
env:
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
POSTGRES_HOST: localhost
POSTGRES_PORT: 5432
POSTGRES_DATABASE: ibis_testing
WEATHER_FEATURES_PORT: 8819
WEATHER_API_URL: https://api.openweathermap.org/data/2.5/weather
OPENWEATHER_API_KEY: ${{ secrets.OPENWEATHER_API_KEY }}
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5.5.4
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: examples
fail_ci_if_error: false