Release candidates for new toolkits (#479)
New toolkit versions are release candidates now. Also fixed a test for e2b toolkit. Also, I am explicitly not running test for toolkits for the post merge workflow because they are run on every PR commit (i.e., they must pass before we even merge)
This commit is contained in:
parent
ed89af4b4d
commit
836c890840
22 changed files with 36 additions and 26 deletions
|
|
@ -84,6 +84,8 @@ jobs:
|
|||
working-directory: ${{ matrix.package }}
|
||||
|
||||
- name: Run tests
|
||||
# Skip tests for toolkits - tests are run on every PR commit for toolkits
|
||||
if: ${{ !startsWith(matrix.package, 'toolkits/') }}
|
||||
working-directory: ${{ matrix.package }}
|
||||
run: |
|
||||
# Run tests if they exist
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|||
|
||||
[project]
|
||||
name = "arcade_e2b"
|
||||
version = "2.0.0"
|
||||
version = "2.0.0rc1"
|
||||
description = "Arcade.dev LLM tools for running code in a sandbox using E2B"
|
||||
requires-python = ">=3.10"
|
||||
dependencies = [
|
||||
|
|
|
|||
|
|
@ -4,9 +4,9 @@ import pytest
|
|||
from arcade_tdk import ToolContext, ToolSecretItem
|
||||
from arcade_tdk.errors import ToolExecutionError
|
||||
|
||||
import arcade_e2b.tools.create_chart
|
||||
import arcade_e2b.tools.run_code
|
||||
from arcade_e2b.enums import E2BSupportedLanguage
|
||||
from arcade_e2b.tools.create_chart import create_static_matplotlib_chart
|
||||
from arcade_e2b.tools.run_code import run_code
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
|
|
@ -31,7 +31,9 @@ def test_run_code_success(mock_run_code_sandbox, mock_context):
|
|||
mock_execution.to_json.return_value = '{"result": "success"}'
|
||||
mock_run_code_sandbox.run_code.return_value = mock_execution
|
||||
|
||||
result = run_code(mock_context, "print('Hello, World!')", E2BSupportedLanguage.PYTHON)
|
||||
result = arcade_e2b.tools.run_code(
|
||||
mock_context, "print('Hello, World!')", E2BSupportedLanguage.PYTHON
|
||||
)
|
||||
assert result == '{"result": "success"}'
|
||||
|
||||
|
||||
|
|
@ -41,7 +43,9 @@ def test_run_code_error(mock_run_code_sandbox, mock_context):
|
|||
mock_run_code_sandbox.run_code.return_value = mock_execution
|
||||
|
||||
with pytest.raises(ToolExecutionError, match="Execution failed"):
|
||||
run_code(mock_context, "print('Hello, World!')", E2BSupportedLanguage.PYTHON)
|
||||
arcade_e2b.tools.run_code(
|
||||
mock_context, "print('Hello, World!')", E2BSupportedLanguage.PYTHON
|
||||
)
|
||||
|
||||
|
||||
def test_create_static_matplotlib_chart_success(mock_create_chart_sandbox, mock_context):
|
||||
|
|
@ -51,7 +55,9 @@ def test_create_static_matplotlib_chart_success(mock_create_chart_sandbox, mock_
|
|||
mock_execution.error = None
|
||||
mock_create_chart_sandbox.run_code.return_value = mock_execution
|
||||
|
||||
result = create_static_matplotlib_chart(mock_context, "import matplotlib.pyplot as plt")
|
||||
result = arcade_e2b.tools.create_chart.create_static_matplotlib_chart(
|
||||
mock_context, "import matplotlib.pyplot as plt"
|
||||
)
|
||||
assert result == {
|
||||
"base64_image": "base64encodedimage",
|
||||
"logs": '{"logs": "log data"}',
|
||||
|
|
@ -66,7 +72,9 @@ def test_create_static_matplotlib_chart_error(mock_create_chart_sandbox, mock_co
|
|||
mock_execution.error.to_json.return_value = '{"error": "some error"}'
|
||||
mock_create_chart_sandbox.run_code.return_value = mock_execution
|
||||
|
||||
result = create_static_matplotlib_chart(mock_context, "import matplotlib.pyplot as plt")
|
||||
result = arcade_e2b.tools.create_chart.create_static_matplotlib_chart(
|
||||
mock_context, "import matplotlib.pyplot as plt"
|
||||
)
|
||||
assert result == {
|
||||
"base64_image": None,
|
||||
"logs": '{"logs": "log data"}',
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|||
|
||||
[project]
|
||||
name = "arcade_firecrawl"
|
||||
version = "2.0.0"
|
||||
version = "2.0.0rc1"
|
||||
description = "Arcade.dev LLM tools for web scraping related tasks via Firecrawl"
|
||||
requires-python = ">=3.10"
|
||||
dependencies = [ "arcade-tdk>=2.0.0,<3.0.0", "firecrawl-py>=1.3.1,<2.0.0",]
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|||
|
||||
[project]
|
||||
name = "arcade_gmail"
|
||||
version = "2.0.0"
|
||||
version = "2.0.0rc1"
|
||||
description = "Arcade.dev LLM tools for Gmail"
|
||||
requires-python = ">=3.10"
|
||||
dependencies = [
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|||
|
||||
[project]
|
||||
name = "arcade_google_calendar"
|
||||
version = "2.0.0"
|
||||
version = "2.0.0rc1"
|
||||
description = "Arcade.dev LLM tools for Google Calendar"
|
||||
requires-python = ">=3.10"
|
||||
dependencies = [
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|||
|
||||
[project]
|
||||
name = "arcade_google_contacts"
|
||||
version = "2.0.0"
|
||||
version = "2.0.0rc1"
|
||||
description = "Arcade.dev LLM tools for Google Contacts"
|
||||
requires-python = ">=3.10"
|
||||
dependencies = [
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|||
|
||||
[project]
|
||||
name = "arcade_google_docs"
|
||||
version = "2.0.0"
|
||||
version = "2.0.0rc1"
|
||||
description = "Arcade.dev LLM tools for Google Docs"
|
||||
requires-python = ">=3.10"
|
||||
dependencies = [
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|||
|
||||
[project]
|
||||
name = "arcade_google_drive"
|
||||
version = "2.0.0"
|
||||
version = "2.0.0rc1"
|
||||
description = "Arcade.dev LLM tools for Google Drive"
|
||||
requires-python = ">=3.10"
|
||||
dependencies = [
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|||
|
||||
[project]
|
||||
name = "arcade_google_finance"
|
||||
version = "2.0.0"
|
||||
version = "2.0.0rc1"
|
||||
description = "Arcade.dev LLM tools for getting financial data via Google Finance"
|
||||
requires-python = ">=3.10"
|
||||
dependencies = [ "arcade-tdk>=2.0.0,<3.0.0", "serpapi>=0.1.5,<1.0.0",]
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|||
|
||||
[project]
|
||||
name = "arcade_google_flights"
|
||||
version = "2.0.0"
|
||||
version = "2.0.0rc1"
|
||||
description = "Arcade.dev LLM tools for getting flights via Google Flights"
|
||||
requires-python = ">=3.10"
|
||||
dependencies = [ "arcade-tdk>=2.0.0,<3.0.0", "serpapi>=0.1.5,<1.0.0",]
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|||
|
||||
[project]
|
||||
name = "arcade_google_hotels"
|
||||
version = "2.0.0"
|
||||
version = "2.0.0rc1"
|
||||
description = "Arcade.dev LLM tools for getting Hotel information via Google Hotels"
|
||||
requires-python = ">=3.10"
|
||||
dependencies = [ "arcade-tdk>=2.0.0,<3.0.0", "serpapi>=0.1.5,<1.0.0",]
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|||
|
||||
[project]
|
||||
name = "arcade_google_jobs"
|
||||
version = "2.0.0"
|
||||
version = "2.0.0rc1"
|
||||
description = "Arcade.dev LLM tools for getting job postings via Google Jobs"
|
||||
requires-python = ">=3.10"
|
||||
dependencies = [ "arcade-tdk>=2.0.0,<3.0.0", "serpapi>=0.1.5,<1.0.0",]
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|||
|
||||
[project]
|
||||
name = "arcade_google_maps"
|
||||
version = "2.0.0"
|
||||
version = "2.0.0rc1"
|
||||
description = "Arcade.dev LLM tools for getting directions via Google Maps"
|
||||
requires-python = ">=3.10"
|
||||
dependencies = [ "arcade-tdk>=2.0.0,<3.0.0", "serpapi>=0.1.5,<1.0.0",]
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|||
|
||||
[project]
|
||||
name = "arcade_google_news"
|
||||
version = "2.0.0"
|
||||
version = "2.0.0rc1"
|
||||
description = "Arcade.dev LLM tools for getting new via Google News"
|
||||
requires-python = ">=3.10"
|
||||
dependencies = [ "arcade-tdk>=2.0.0,<3.0.0", "serpapi>=0.1.5,<1.0.0",]
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|||
|
||||
[project]
|
||||
name = "arcade_google_search"
|
||||
version = "2.0.0"
|
||||
version = "2.0.0rc1"
|
||||
description = "Arcade.dev LLM tools for searching via Google"
|
||||
requires-python = ">=3.10"
|
||||
dependencies = [
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|||
|
||||
[project]
|
||||
name = "arcade_google_sheets"
|
||||
version = "2.0.0"
|
||||
version = "2.0.0rc1"
|
||||
description = "Arcade.dev LLM tools for Google Sheets"
|
||||
requires-python = ">=3.10"
|
||||
dependencies = [
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|||
|
||||
[project]
|
||||
name = "arcade_google_shopping"
|
||||
version = "2.0.0"
|
||||
version = "2.0.0rc1"
|
||||
description = "Arcade.dev LLM tools for shopping via Google Shopping"
|
||||
requires-python = ">=3.10"
|
||||
dependencies = [
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|||
|
||||
[project]
|
||||
name = "arcade_outlook_calendar"
|
||||
version = "1.0.0"
|
||||
version = "1.0.0rc1"
|
||||
description = "rcade.dev LLM tools for Outlook Calendar"
|
||||
requires-python = ">=3.10"
|
||||
dependencies = [
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|||
|
||||
[project]
|
||||
name = "arcade_outlook_mail"
|
||||
version = "1.0.0"
|
||||
version = "1.0.0rc1"
|
||||
description = "Arcade.dev LLM tools for Outlook Mail"
|
||||
requires-python = ">=3.10"
|
||||
dependencies = [
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|||
|
||||
[project]
|
||||
name = "arcade_walmart"
|
||||
version = "2.0.0"
|
||||
version = "2.0.0rc1"
|
||||
description = "Arcade.dev LLM tools for searching for products sold by Walmart"
|
||||
requires-python = ">=3.10"
|
||||
dependencies = [
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|||
|
||||
[project]
|
||||
name = "arcade_youtube"
|
||||
version = "2.0.0"
|
||||
version = "2.0.0rc1"
|
||||
description = "Arcade.dev LLM tools for searching for YouTube videos""
|
||||
requires-python = ">=3.10"
|
||||
dependencies = [
|
||||
|
|
|
|||
Loading…
Reference in a new issue