build(deps): add support for langchain>0.2
#143
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
workflow_dispatch: # Allow running on-demand | |
push: | |
branches: | |
- main | |
paths: | |
- .github/workflows/ci.yaml | |
- poetry.lock | |
- pyproject.toml | |
- lanarky/** | |
- tests/** | |
- "!**.md" | |
pull_request: | |
types: [opened, synchronize, reopened, ready_for_review] | |
paths: | |
- .github/workflows/ci.yaml | |
- poetry.lock | |
- pyproject.toml | |
- lanarky/** | |
- tests/** | |
- "!**.md" | |
env: | |
PYTHON_VERSION: 3.9 | |
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
jobs: | |
build-and-test: | |
if: github.event.pull_request.draft == false | |
runs-on: ubuntu-latest | |
steps: | |
- name: Code checkout | |
uses: actions/checkout@v3 | |
- name: Setup python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ env.PYTHON_VERSION }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip poetry | |
poetry install --all-extras | |
- name: Run unit tests | |
run: make tests | |
- name: Upload coverage | |
run: make coverage |