Skip to content

Commit 87825f4

Browse files
tholorclaude
andcommitted
fix: skip integration tests when E2B_API_KEY secret is not set
Gate the "Run integration tests" CI step on the E2B_API_KEY env var being present, matching the pattern used by other integrations (e.g. cohere). Without this the step exits with code 5 (no tests collected) because there are no integration-marked tests and no API key is configured yet. Also exposes E2B_API_KEY from secrets at the workflow env level so it will be available once a maintainer adds the secret to the repo. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 79b92b2 commit 87825f4

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/e2b.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ concurrency:
2929
env:
3030
PYTHONUNBUFFERED: "1"
3131
FORCE_COLOR: "1"
32+
E2B_API_KEY: ${{ secrets.E2B_API_KEY }}
3233
TEST_MATRIX_OS: '["ubuntu-latest", "windows-latest", "macos-latest"]'
3334
TEST_MATRIX_PYTHON: '["3.10", "3.14"]'
3435

@@ -102,6 +103,7 @@ jobs:
102103
path: python-coverage-comment-action-e2b.txt
103104

104105
- name: Run integration tests
106+
if: env.E2B_API_KEY != ''
105107
run: hatch run test:integration-cov-append-retry
106108

107109
- name: Store combined coverage

0 commit comments

Comments
 (0)