Skip to content

fix: bound anthropic<1.0.0 on the bedrock extra of uipath-langchain-client #326

fix: bound anthropic<1.0.0 on the bedrock extra of uipath-langchain-client

fix: bound anthropic<1.0.0 on the bedrock extra of uipath-langchain-client #326

Workflow file for this run

name: CI Pipeline
on:
pull_request:
branches:
- main
paths:
- "src/**"
- "packages/**"
- "tests/**"
- "pyproject.toml"
- "uv.lock"
- ".python-version"
permissions:
contents: read
jobs:
type_check:
name: Type Check and Lint
runs-on: uipath-ubuntu-latest
steps:
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
- name: Install uv
uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
with:
version: "0.9.27"
enable-cache: true
- name: Set up Python
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
with:
python-version-file: ".python-version"
- name: Install dependencies
run: uv sync --dev --all-extras
- name: Ruff check
run: |
uv run ruff check || exit 1
uv run ruff format --check || exit 1
- name: Pyright
run: uv run pyright .
import_without_extras:
name: Import Without Extras
runs-on: uipath-ubuntu-latest
steps:
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
- name: Install uv
uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
with:
version: "0.9.27"
enable-cache: true
- name: Set up Python
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
with:
python-version-file: ".python-version"
- name: Install without extras
run: uv sync --no-dev --package uipath-langchain-client
- name: Import packages
run: |
uv run --no-sync python -c "import uipath.llm_client"
uv run --no-sync python -c "import uipath_langchain_client"
test:
name: Test
runs-on: uipath-ubuntu-latest
needs: type_check
environment: LLMGW_SETTINGS
env:
UIPATH_LLM_SERVICE: ${{ vars.UIPATH_LLM_SERVICE }}
LLMGW_URL: ${{ vars.LLMGW_URL }}
LLMGW_SEMANTIC_ORG_ID: ${{ secrets.LLMGW_SEMANTIC_ORG_ID }}
LLMGW_SEMANTIC_USER_ID: ${{ secrets.LLMGW_SEMANTIC_USER_ID }}
LLMGW_SEMANTIC_TENANT_ID: ${{ secrets.LLMGW_SEMANTIC_TENANT_ID }}
LLMGW_REQUESTING_PRODUCT: ${{ vars.LLMGW_REQUESTING_PRODUCT }}
LLMGW_REQUESTING_FEATURE: ${{ vars.LLMGW_REQUESTING_FEATURE }}
LLMGW_CLIENT_ID: ${{ secrets.LLMGW_CLIENT_ID }}
LLMGW_CLIENT_SECRET: ${{ secrets.LLMGW_CLIENT_SECRET }}
steps:
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
with:
lfs: true
- name: Install uv
uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
with:
version: "0.9.27"
enable-cache: true
- name: Set up Python
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
with:
python-version-file: ".python-version"
- name: Install dependencies
run: uv sync --dev --all-extras
- name: Run tests
run: uv run pytest tests