-
Notifications
You must be signed in to change notification settings - Fork 651
83 lines (72 loc) · 2.34 KB
/
Copy pathtest-ingestion.yml
File metadata and controls
83 lines (72 loc) · 2.34 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
76
77
78
79
80
81
82
83
name: Test Ingestion Package
on:
pull_request:
paths:
- 'ingestion/**'
- '.github/workflows/test-ingestion.yml'
push:
branches: [main]
paths:
- 'ingestion/**'
- '.github/workflows/test-ingestion.yml'
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.11", "3.12", "3.13"]
resolution: ["highest", "lowest-direct"]
defaults:
run:
working-directory: ingestion
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Install uv
uses: astral-sh/setup-uv@caf0cab7a618c569241d31dcd442f54681755d39 # v3
with:
version: "0.7.19"
- name: Set up Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}
- name: Install dependencies
run: |
uv lock --resolution ${{ matrix.resolution }} --refresh
uv sync --extra dev
- name: Run linting
run: |
uv run ruff check .
uv run ruff format --check .
- name: Run type checking
run: uv run mypy src/
- name: Run offline tests
run: uv run pytest tests/ -v -m "not integration" --cov=zep_ingest --cov-report=xml
- name: Upload coverage
if: matrix.python-version == '3.11' && matrix.resolution == 'highest'
uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 # v4
with:
file: ingestion/coverage.xml
flags: ingestion
name: ingestion-coverage
integration:
if: false # superseded by smoke-ingestion.yml (non-blocking post-merge smoke)
runs-on: ubuntu-latest
environment: integration
defaults:
run:
working-directory: ingestion
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Install uv
uses: astral-sh/setup-uv@caf0cab7a618c569241d31dcd442f54681755d39 # v3
with:
version: "0.7.19"
- name: Set up Python
run: uv python install 3.13
- name: Install dependencies
run: uv sync --extra dev
- name: Run live integration tests
run: uv run pytest tests/test_integration.py -v -m integration
env:
ZEP_API_KEY: ${{ secrets.ZEP_API_KEY }}