Skip to content

Commit 4afff31

Browse files
feat: github action for testing
1 parent 1abc6a1 commit 4afff31

2 files changed

Lines changed: 118 additions & 0 deletions

File tree

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: Test UiPath Langchain
2+
3+
on:
4+
pull_request:
5+
types: [ opened, synchronize, reopened, labeled ]
6+
7+
jobs:
8+
test-uipath-langchain:
9+
runs-on: ${{ matrix.os }}
10+
strategy:
11+
matrix:
12+
python-version: [ "3.10", "3.11", "3.12", "3.13" ]
13+
os: [ ubuntu-latest, windows-latest ]
14+
15+
permissions:
16+
contents: read
17+
18+
# Only run if PR has the test:uipath-langchain label
19+
if: contains(github.event.pull_request.labels.*.name, 'test:uipath-langchain')
20+
21+
steps:
22+
- name: Checkout uipath-python
23+
uses: actions/checkout@v4
24+
with:
25+
path: 'uipath-python'
26+
27+
- name: Setup uv
28+
uses: astral-sh/setup-uv@v5
29+
30+
- name: Setup Python
31+
uses: actions/setup-python@v5
32+
with:
33+
python-version: ${{ matrix.python-version }}
34+
35+
- name: Build uipath-python package
36+
run: |
37+
cd uipath-python
38+
uv build
39+
40+
- name: Checkout uipath-langchain-python
41+
uses: actions/checkout@v4
42+
with:
43+
repository: 'UiPath/uipath-langchain-python'
44+
path: 'uipath-langchain-python'
45+
token: ${{ secrets.REPO_ACCESS }}
46+
47+
- name: Update uipath-python version
48+
shell: bash
49+
run: |
50+
cd uipath-langchain-python
51+
uv add ../uipath-python/dist/*.whl --dev
52+
53+
- name: Run uipath-langchain tests
54+
run: |
55+
cd uipath-langchain-python
56+
uv sync
57+
uv run pytest
58+
59+
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: Test UiPath LlamaIndex
2+
3+
on:
4+
pull_request:
5+
types: [ opened, synchronize, reopened, labeled ]
6+
7+
jobs:
8+
test-uipath-llamaindex:
9+
runs-on: ${{ matrix.os }}
10+
strategy:
11+
matrix:
12+
python-version: [ "3.10", "3.11", "3.12", "3.13" ]
13+
os: [ ubuntu-latest, windows-latest ]
14+
15+
permissions:
16+
contents: read
17+
18+
# Only run if PR has the test:uipath-llamaindex label
19+
if: contains(github.event.pull_request.labels.*.name, 'test:uipath-llamaindex')
20+
21+
steps:
22+
- name: Checkout uipath-python
23+
uses: actions/checkout@v4
24+
with:
25+
path: 'uipath-python'
26+
27+
- name: Setup uv
28+
uses: astral-sh/setup-uv@v5
29+
30+
- name: Setup Python
31+
uses: actions/setup-python@v5
32+
with:
33+
python-version: ${{ matrix.python-version }}
34+
35+
- name: Build uipath-python package
36+
run: |
37+
cd uipath-python
38+
uv build
39+
40+
- name: Checkout uipath-llamaindex-python
41+
uses: actions/checkout@v4
42+
with:
43+
repository: 'UiPath/uipath-llamaindex-python'
44+
path: 'uipath-llamaindex-python'
45+
token: ${{ secrets.REPO_ACCESS }}
46+
47+
- name: Update uipath-python version
48+
shell: bash
49+
run: |
50+
cd uipath-llamaindex-python
51+
uv add ../uipath-python/dist/*.whl --dev
52+
53+
- name: Run uipath-llamaindex tests
54+
run: |
55+
cd uipath-llamaindex-python
56+
uv sync
57+
uv run pytest
58+
59+

0 commit comments

Comments
 (0)