-
Notifications
You must be signed in to change notification settings - Fork 3
73 lines (55 loc) · 1.77 KB
/
Copy pathtest.yml
File metadata and controls
73 lines (55 loc) · 1.77 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
name: Run tests
on:
pull_request:
branches:
- main
workflow_dispatch:
workflow_call:
permissions:
contents: read
id-token: write # This is required for requesting the JWT for the OIDC provider
jobs:
test-core:
runs-on: ubuntu-latest
# TODO: add more python versions to tests
# strategy:
# matrix:
# python-version: ["3.13"]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up python
uses: actions/setup-python@v5
with:
python-version: "3.13"
- name: Install uv
uses: astral-sh/setup-uv@v7
- name: Create virtual environment
run: uv venv .venv
- name: Install dependencies
run: |
uv pip install --python .venv -e ".[all]" --group dev
- name: Run log handling tests
run: |
.venv/bin/pytest tests/test_log_handlers.py -v
- name: Run privilege zone selector sync tests
run: |
.venv/bin/pytest tests/test_pz_selector_sync.py -v
- name: Run saved searches sync tests
run: |
.venv/bin/pytest tests/test_saved_searches_sync.py -v
- name: Run extension validation tests
run: |
.venv/bin/pytest tests/test_extensions_format.py -v
- name: Run BHE job scheduling test
run: |
.venv/bin/pytest tests/test_bhe_job_scheduling.py -v
- name: Run preprocess lookup generation tests
run: |
.venv/bin/pytest tests/test_preproc.py -v
- name: Run DuckDB lookup exception handling tests
run: |
.venv/bin/pytest tests/test_lookup.py -v
- name: Run DLT Pydantic exception handling (override) test
run: |
.venv/bin/pytest tests/test_dlt_pydantic_override.py -v