Skip to content

armgit / E2B

Public Imported from GitHub
0

Open-source, secure environment with real-world tools for enterprise-grade agents.

Add tests before release

Jakub Novakcc8938c7a420
diff --git a/.github/workflows/release_candidates.yml b/.github/workflows/release_candidates.yml
index 574b91067..5f0a8c6a8 100644
--- a/.github/workflows/release_candidates.yml
+++ b/.github/workflows/release_candidates.yml
@@ -40,6 +40,12 @@ jobs:
if: ${{ contains( github.event.pull_request.labels.*.name, 'js-rc') || contains( github.event.pull_request.labels.*.name, 'cli-rc') }}
run: pnpm install --frozen-lockfile
+ - name: Test JS SDK
+ working-directory: packages/js-sdk
+ if: ${{ contains( github.event.pull_request.labels.*.name, 'js-rc') }}
+ run: |
+ pnpm run test
+
- name: Release JS Candidate
working-directory: packages/js-sdk
if: ${{ contains( github.event.pull_request.labels.*.name, 'js-rc') }}
@@ -73,6 +79,12 @@ jobs:
virtualenvs-in-project: true
installer-parallel: true
+ - name: Test Python SDK
+ if: ${{ contains( github.event.pull_request.labels.*.name, 'python-rc') }}
+ working-directory: packages/python-sdk
+ run: |
+ poetry run pytest -n 4 --verbose -x
+
- name: Release Candidate
if: ${{ contains( github.event.pull_request.labels.*.name, 'python-rc') }}
working-directory: packages/python-sdk
diff --git a/templates/base/e2b.toml b/templates/base/e2b.toml
index 97e71ba5c..80d5456ed 100644
--- a/templates/base/e2b.toml
+++ b/templates/base/e2b.toml
@@ -1,14 +1,15 @@
# This is a config for E2B sandbox template.
-# You can use 'template_id' (idnrwvs3vrde6hknozc0) from this config to spawn a sandbox:
+# You can use 'template_id' (rki5dems9wqfm4r03t7g) or 'template_name (base) from this config to spawn a sandbox:
# Python SDK
# from e2b import Sandbox
-# sandbox = Sandbox(template='idnrwvs3vrde6hknozc0')
+# sandbox = Sandbox(template='base')
# JS SDK
# import { Sandbox } from 'e2b'
-# const sandbox = await Sandbox.create({ template: 'idnrwvs3vrde6hknozc0' })
+# const sandbox = await Sandbox.create({ template: 'base' })
-memory_mb = 4_096
+team_id = "460355b3-4f64-48f9-9a16-4442817f79f5"
dockerfile = "e2b.Dockerfile"
-template_id = "idnrwvs3vrde6hknozc0"
+template_name = "base"
+template_id = "rki5dems9wqfm4r03t7g"