-
Notifications
You must be signed in to change notification settings - Fork 2
193 lines (155 loc) · 5.66 KB
/
Copy pathtest-python.yml
File metadata and controls
193 lines (155 loc) · 5.66 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
# Generated by scitrera-repo-tools `generate-ci-gha`. Do not edit by hand;
# re-run the generator after editing versions.yaml. Run
# `generate-ci-gha` (no flags) to check for drift, `generate-ci-gha --force` to apply.
name: Test (Python)
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main, develop ]
workflow_call:
concurrency:
# github.ref is stable across pushes to the same PR (refs/pull/N/merge), so
# this still cancels a superseded run when you push again — the case where
# cancelling is the right outcome. It deliberately does NOT collapse the
# push and pull_request runs of one commit: that duplicate is avoided with
# ci.push_branches instead, because a cancelled run reports as cancelled
# rather than as success.
group: test-python-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
test-memorylayer-core-python:
name: Test memorylayer-core-python (py${{ matrix.python-version }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.12"]
steps:
- uses: actions/checkout@v7
- uses: actions/[email protected]
with:
python-version: ${{ matrix.python-version }}
- name: Install uv
uses: astral-sh/[email protected]
- name: Install
run: pip install -e ".[dev,context,observability]"
working-directory: memorylayer-core-python
- name: Run tests
run: pytest tests/ -m "not slow and not integration and not llm and not llm_quality" -x
working-directory: memorylayer-core-python
- name: Verify source distribution and wheel contents
run: |
python ../scripts/check-python-package.py
working-directory: memorylayer-core-python
- name: Retrieval eval gate
run: |
memorylayer-eval gate
working-directory: memorylayer-core-python
test-memorylayer-sdk-langchain-python:
name: Test memorylayer-sdk-langchain-python (py${{ matrix.python-version }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.12"]
steps:
- uses: actions/checkout@v7
- uses: actions/[email protected]
with:
python-version: ${{ matrix.python-version }}
- name: Install uv
uses: astral-sh/[email protected]
- name: Install in-repo dependencies (memorylayer-sdk-python)
run: |
pip install -e memorylayer-sdk-python
- name: Install
run: pip install -e ".[dev]"
working-directory: memorylayer-sdk-langchain-python
- name: Run tests
run: pytest tests/ -x
working-directory: memorylayer-sdk-langchain-python
- name: Verify source distribution and wheel contents
run: |
python ../scripts/check-python-package.py
working-directory: memorylayer-sdk-langchain-python
test-memorylayer-sdk-llamaindex-python:
name: Test memorylayer-sdk-llamaindex-python (py${{ matrix.python-version }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.12"]
steps:
- uses: actions/checkout@v7
- uses: actions/[email protected]
with:
python-version: ${{ matrix.python-version }}
- name: Install uv
uses: astral-sh/[email protected]
- name: Install in-repo dependencies (memorylayer-sdk-python)
run: |
pip install -e memorylayer-sdk-python
- name: Install
run: pip install -e ".[dev]"
working-directory: memorylayer-sdk-llamaindex-python
- name: Run tests
run: pytest tests/ -x
working-directory: memorylayer-sdk-llamaindex-python
- name: Verify source distribution and wheel contents
run: |
python ../scripts/check-python-package.py
working-directory: memorylayer-sdk-llamaindex-python
test-memorylayer-sdk-python:
name: Test memorylayer-sdk-python (py${{ matrix.python-version }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.12"]
steps:
- uses: actions/checkout@v7
- uses: actions/[email protected]
with:
python-version: ${{ matrix.python-version }}
- name: Install uv
uses: astral-sh/[email protected]
- name: Install
run: pip install -e ".[dev]"
working-directory: memorylayer-sdk-python
- name: Run tests
run: pytest tests/ -x
working-directory: memorylayer-sdk-python
- name: Verify source distribution and wheel contents
run: |
python ../scripts/check-python-package.py
working-directory: memorylayer-sdk-python
test-memorylayer-server-rpg-python:
name: Test memorylayer-server-rpg-python (py${{ matrix.python-version }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.12"]
steps:
- uses: actions/checkout@v7
- uses: actions/[email protected]
with:
python-version: ${{ matrix.python-version }}
- name: Install uv
uses: astral-sh/[email protected]
- name: Install in-repo dependencies (memorylayer-core-python)
run: |
pip install -e memorylayer-core-python
- name: Install
run: pip install -e ".[dev]"
working-directory: memorylayer-server-rpg-python
- name: Run tests
run: pytest tests/ -x
working-directory: memorylayer-server-rpg-python
- name: Verify source distribution and wheel contents
run: |
python ../scripts/check-python-package.py
working-directory: memorylayer-server-rpg-python