Skip to content

Commit 5c9ff25

Browse files
committed
chore: add pipeline typechecking check to protect against breaking changes downstream
1 parent fde17bc commit 5c9ff25

File tree

2 files changed

+88
-0
lines changed

2 files changed

+88
-0
lines changed

.github/workflows/test-uipath-langchain.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,50 @@ jobs:
5353
uv sync --all-extras
5454
uv run pytest
5555
56+
typecheck-uipath-langchain:
57+
runs-on: ubuntu-latest
58+
59+
permissions:
60+
contents: read
61+
62+
# Only run if PR has the test:uipath-langchain label
63+
if: contains(github.event.pull_request.labels.*.name, 'test:uipath-langchain')
64+
65+
steps:
66+
- name: Checkout uipath-runtime-python
67+
uses: actions/checkout@v4
68+
with:
69+
path: 'uipath-runtime-python'
70+
71+
- name: Setup uv
72+
uses: astral-sh/setup-uv@v5
73+
74+
- name: Setup Python
75+
uses: actions/setup-python@v5
76+
with:
77+
python-version: '3.12'
78+
79+
- name: Build uipath-runtime package
80+
working-directory: uipath-runtime-python
81+
run: uv build
82+
83+
- name: Checkout uipath-langchain-python
84+
uses: actions/checkout@v4
85+
with:
86+
repository: 'UiPath/uipath-langchain-python'
87+
path: 'uipath-langchain-python'
88+
89+
- name: Update uipath-runtime version
90+
shell: bash
91+
working-directory: uipath-langchain-python
92+
run: uv add ../uipath-runtime-python/dist/*.whl --dev
93+
94+
- name: Run typecheck
95+
working-directory: uipath-langchain-python
96+
run: |
97+
uv sync --all-extras
98+
uv run mypy --config-file pyproject.toml .
99+
56100
discover-testcases:
57101
runs-on: ubuntu-latest
58102
permissions:

.github/workflows/test-uipath.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,50 @@ jobs:
5353
uv sync --all-extras
5454
uv run pytest
5555
56+
typecheck-uipath:
57+
runs-on: ubuntu-latest
58+
59+
permissions:
60+
contents: read
61+
62+
# Only run if PR has the test:uipath label
63+
if: contains(github.event.pull_request.labels.*.name, 'test:uipath')
64+
65+
steps:
66+
- name: Checkout uipath-runtime-python
67+
uses: actions/checkout@v4
68+
with:
69+
path: 'uipath-runtime-python'
70+
71+
- name: Setup uv
72+
uses: astral-sh/setup-uv@v5
73+
74+
- name: Setup Python
75+
uses: actions/setup-python@v5
76+
with:
77+
python-version: '3.12'
78+
79+
- name: Build uipath-runtime package
80+
working-directory: uipath-runtime-python
81+
run: uv build
82+
83+
- name: Checkout uipath-python
84+
uses: actions/checkout@v4
85+
with:
86+
repository: 'UiPath/uipath-python'
87+
path: 'uipath-python'
88+
89+
- name: Update uipath-runtime version
90+
shell: bash
91+
working-directory: uipath-python
92+
run: uv add ../uipath-runtime-python/dist/*.whl --dev
93+
94+
- name: Run typecheck
95+
working-directory: uipath-python
96+
run: |
97+
uv sync --all-extras
98+
uv run mypy --config-file pyproject.toml .
99+
56100
discover-testcases:
57101
runs-on: ubuntu-latest
58102
permissions:

0 commit comments

Comments
 (0)