Skip to content

Commit e0acbf6

Browse files
committed
Add tests in CI
1 parent ddf47cc commit e0acbf6

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

.github/workflows/lint.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
working-directory: ./langchain
1919
strategy:
2020
matrix:
21-
python-version: ['3.8', '3.13']
21+
python-version: ['3.9', '3.13']
2222
steps:
2323
- uses: actions/checkout@v4
2424
with:
@@ -27,18 +27,18 @@ jobs:
2727
uses: astral-sh/setup-uv@v3
2828
with:
2929
enable-cache: true
30-
cache-dependency-glob: "uv.lock"
30+
cache-dependency-glob: "langchain/uv.lock"
3131
- name: "Set up Python"
3232
uses: actions/setup-python@v5
3333
with:
34-
python-version-file: "pyproject.toml"
34+
python-version-file: "langchain/pyproject.toml"
3535
- name: Restore uv cache
3636
uses: actions/cache@v4
3737
with:
3838
path: /tmp/.uv-cache
39-
key: uv-${{ runner.os }}-${{ hashFiles('uv.lock') }}
39+
key: uv-langchain-${{ hashFiles('langchain/uv.lock') }}
4040
restore-keys: |
41-
uv-${{ runner.os }}-${{ hashFiles('uv.lock') }}
41+
uv-langchain-${{ hashFiles('langchain/uv.lock') }}
4242
uv-${{ runner.os }}
4343
- name: Install the project
4444
run: uv sync --dev

.github/workflows/python_test.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
uses: astral-sh/setup-uv@v3
2424
with:
2525
enable-cache: true
26-
cache-dependency-glob: "uv.lock"
26+
cache-dependency-glob: "langchain/uv.lock"
2727
- name: "Set up Python"
2828
uses: actions/setup-python@v5
2929
with:
@@ -32,10 +32,9 @@ jobs:
3232
uses: actions/cache@v4
3333
with:
3434
path: /tmp/.uv-cache
35-
key: uv-${{ runner.os }}-${{ hashFiles('uv.lock') }}
35+
key: uv-langchain-${{ hashFiles('uv.lock') }}
3636
restore-keys: |
37-
uv-${{ runner.os }}-${{ hashFiles('uv.lock') }}
38-
uv-${{ runner.os }}
37+
uv-langchain-${{ hashFiles('uv.lock') }}
3938
- name: Install the project
4039
run: uv sync --dev
4140
- name: Run unit tests

0 commit comments

Comments
 (0)