Skip to content

chore: update dependency langchain-hana to v1 #655

chore: update dependency langchain-hana to v1

chore: update dependency langchain-hana to v1 #655

name: pull-tests-doc-indexer
on:
pull_request_target:
types: [opened, synchronize, reopened, ready_for_review]
branches:
- "main"
- "release-**"
paths:
- "doc_indexer/**"
jobs:
tests:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
- name: Extract Python version
id: python-version
working-directory: ./doc_indexer
run: |
../scripts/shell/extract-python-version.sh
echo "Got PYTHON_VERSION=${PYTHON_VERSION}"
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: Install dependencies
working-directory: ./doc_indexer
run: poetry install --with test
- name: Run unit tests
working-directory: ./doc_indexer
env:
LOG_LEVEL: "DEBUG"
# Kyma docs path.
DOCS_SOURCES_FILE_PATH: "./docs_sources.json"
DOCS_PATH: "/test-data"
DOCS_TABLE_NAME: "kc_pr_${{ github.event.pull_request.number }}"
run: |
poetry run poe test-unit
- name: Run integration tests
working-directory: ./doc_indexer
env:
LOG_LEVEL: "DEBUG"
# Kyma docs path.
DOCS_SOURCES_FILE_PATH: "./docs_sources.json"
DOCS_PATH: "/test-data"
DOCS_TABLE_NAME: "kc_pr_${{ github.event.pull_request.number }}"
run: |
export CONFIG_PATH=$GITHUB_WORKSPACE/config/config.json
echo "${{ secrets.DOC_INDEXER_TESTS_CONFIG }}" | base64 --decode | jq > $CONFIG_PATH
poetry run poe test-integration