Skip to content

Commit

Permalink
Upgrade packages. Add canary GHA to test with upgraded packages weekly.
Browse files Browse the repository at this point in the history
  • Loading branch information
rectalogic committed Jan 26, 2025
1 parent a7f291d commit bf10f04
Show file tree
Hide file tree
Showing 4 changed files with 440 additions and 209 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/canary.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Canary tests

on:
workflow_call:
schedule:
- cron: '* * * * 0'

permissions:
contents: read

jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v2
with:
enable-cache: false
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Run tests with upgraded packages
run: uv run --upgrade --python ${{ matrix.python-version }} --python-preference only-system pytest
- name: Mypy
run: |
uv run --upgrade --python ${{ matrix.python-version }} --python-preference only-system mypy
2 changes: 0 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,5 @@ jobs:
uv run --python ${{ matrix.python-version }} --python-preference only-system ruff format --check
uv run --python ${{ matrix.python-version }} --python-preference only-system ruff check
- name: Mypy
# Disable until fix released https://github.com/pydantic/pydantic/pull/10979
if: ${{ matrix.python-version != '3.13' }}
run: |
uv run --python ${{ matrix.python-version }} --python-preference only-system mypy
23 changes: 12 additions & 11 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ authors = [
]
requires-python = ">=3.10"
dependencies = [
"langchain-core~=0.3.21",
"mcp~=1.0.0",
"pydantic~=2.10.2",
"typing-extensions~=4.12.2",
"langchain-core~=0.3",
"mcp~=1.0",
"pydantic~=2.10",
"typing-extensions~=4.12",
]
classifiers = [
"License :: OSI Approved :: MIT License",
Expand All @@ -23,13 +23,13 @@ build-backend = "hatchling.build"

[dependency-groups]
dev = [
"langchain-tests~=0.3.4",
"pytest~=8.3.3",
"pytest-asyncio~=0.24.0",
"pytest-socket~=0.7.0",
"ruff~=0.8.0",
"mypy~=1.13.0",
"langchain-groq~=0.2.1",
"langchain-tests~=0.3",
"pytest~=8.3",
"pytest-asyncio~=0.24",
"pytest-socket~=0.7",
"ruff~=0.8",
"mypy~=1.13",
"langchain-groq~=0.2",
]

[project.urls]
Expand Down Expand Up @@ -83,3 +83,4 @@ strict_equality = true
no_implicit_optional = true
show_error_codes = true
files = ["src/**/*.py", "tests/demo.py"]
plugins = "pydantic.mypy"
Loading

0 comments on commit bf10f04

Please sign in to comment.