Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
fix(ci): gate SDK test steps on inputs.run so matrix checks always expand (#1447)
Mish Ushakova467e0414431
diff --git a/.github/workflows/cli_tests.yml b/.github/workflows/cli_tests.ymlindex 83287db39..0e7a12072 100644--- a/.github/workflows/cli_tests.yml+++ b/.github/workflows/cli_tests.yml@@ -21,7 +21,8 @@ permissions:jobs:test:- if: ${{ inputs.run }}+ # Gate each step (not the job) on `inputs.run` so the matrix always expands+ # and the per-OS required checks are created even when skipped.defaults:run:working-directory: ./packages/cli@@ -33,9 +34,11 @@ jobs:runs-on: ${{ matrix.os }}steps:- name: Checkout repository+ if: ${{ inputs.run }}uses: actions/checkout@v4- name: Parse .tool-versions+ if: ${{ inputs.run }}uses: wistia/[email protected]with:filename: '.tool-versions'@@ -43,11 +46,13 @@ jobs:prefix: 'tool_version_'- name: Install pnpm+ if: ${{ inputs.run }}uses: pnpm/action-setup@v4with:version: '${{ env.TOOL_VERSION_PNPM }}'- name: Setup Node+ if: ${{ inputs.run }}uses: actions/setup-node@v3with:node-version: '${{ env.TOOL_VERSION_NODEJS }}'@@ -56,21 +61,26 @@ jobs:cache-dependency-path: pnpm-lock.yaml- name: Configure pnpm+ if: ${{ inputs.run }}run: |pnpm config set auto-install-peers true- name: Install dependencies+ if: ${{ inputs.run }}run: pnpm install --frozen-lockfile- name: Build the SDK (pre-requisite for the tests)+ if: ${{ inputs.run }}run: pnpm buildworking-directory: ./packages/js-sdk- name: Build the CLI+ if: ${{ inputs.run }}run: pnpm buildworking-directory: ./packages/cli- name: Run tests+ if: ${{ inputs.run }}run: pnpm testworking-directory: ./packages/clienv:diff --git a/.github/workflows/js_sdk_tests.yml b/.github/workflows/js_sdk_tests.ymlindex a5e400080..8e1702a03 100644--- a/.github/workflows/js_sdk_tests.yml+++ b/.github/workflows/js_sdk_tests.yml@@ -21,7 +21,8 @@ permissions:jobs:test:- if: ${{ inputs.run }}+ # Gate each step (not the job) on `inputs.run` so the matrix always expands+ # and the per-OS required checks are created even when skipped.defaults:run:working-directory: ./packages/js-sdk@@ -34,9 +35,11 @@ jobs:runs-on: ${{ matrix.os }}steps:- name: Checkout repository+ if: ${{ inputs.run }}uses: actions/checkout@v4- name: Parse .tool-versions+ if: ${{ inputs.run }}uses: wistia/[email protected]with:filename: '.tool-versions'@@ -44,12 +47,14 @@ jobs:prefix: 'tool_version_'- name: Install pnpm+ if: ${{ inputs.run }}uses: pnpm/action-setup@v4id: pnpm-installwith:version: '${{ env.TOOL_VERSION_PNPM }}'- name: Setup Node+ if: ${{ inputs.run }}uses: actions/setup-node@v3with:node-version: '${{ env.TOOL_VERSION_NODEJS }}'@@ -58,16 +63,18 @@ jobs:cache-dependency-path: pnpm-lock.yaml- name: Configure pnpm+ if: ${{ inputs.run }}run: |pnpm config set auto-install-peers truepnpm config set exclude-links-from-lockfile true- name: Install dependencies+ if: ${{ inputs.run }}run: |pnpm install --frozen-lockfile- name: Cache Playwright binaries (Linux)- if: matrix.os == 'ubuntu-22.04'+ if: ${{ inputs.run && matrix.os == 'ubuntu-22.04' }}uses: actions/cache@v4with:path: ~/.cache/ms-playwright@@ -76,7 +83,7 @@ jobs:playwright-${{ runner.os }}-${{ env.TOOL_VERSION_NODEJS }}-- name: Cache Playwright binaries (Windows)- if: matrix.os == 'windows-latest'+ if: ${{ inputs.run && matrix.os == 'windows-latest' }}uses: actions/cache@v4with:path: ~/AppData/Local/ms-playwright@@ -85,29 +92,35 @@ jobs:playwright-${{ runner.os }}-${{ env.TOOL_VERSION_NODEJS }}-- name: Test build+ if: ${{ inputs.run }}run: pnpm build- name: Run Node tests+ if: ${{ inputs.run }}run: pnpm testenv:E2B_API_KEY: ${{ secrets.E2B_API_KEY }}E2B_DOMAIN: ${{ inputs.E2B_DOMAIN }}- name: Install Bun+ if: ${{ inputs.run }}uses: oven-sh/setup-bun@v2- name: Run Bun tests+ if: ${{ inputs.run }}run: pnpm test:bunenv:E2B_API_KEY: ${{ secrets.E2B_API_KEY }}E2B_DOMAIN: ${{ inputs.E2B_DOMAIN }}- name: Install Deno+ if: ${{ inputs.run }}uses: denoland/setup-deno@v1with:deno-version: v${{ env.TOOL_VERSION_DENO }}- name: Run Deno tests+ if: ${{ inputs.run }}run: pnpm test:denoenv:E2B_API_KEY: ${{ secrets.E2B_API_KEY }}diff --git a/.github/workflows/python_sdk_tests.yml b/.github/workflows/python_sdk_tests.ymlindex a4b1be836..1a656622a 100644--- a/.github/workflows/python_sdk_tests.yml+++ b/.github/workflows/python_sdk_tests.yml@@ -21,7 +21,8 @@ permissions:jobs:test:- if: ${{ inputs.run }}+ # Gate each step (not the job) on `inputs.run` so the matrix always expands+ # and the per-OS required checks are created even when skipped.defaults:run:working-directory: ./packages/python-sdk@@ -34,9 +35,11 @@ jobs:runs-on: ${{ matrix.os }}steps:- name: Checkout repository+ if: ${{ inputs.run }}uses: actions/checkout@v4- name: Parse .tool-versions+ if: ${{ inputs.run }}uses: wistia/[email protected]with:filename: '.tool-versions'@@ -44,11 +47,13 @@ jobs:prefix: 'tool_version_'- name: Set up Python+ if: ${{ inputs.run }}uses: actions/setup-python@v4with:python-version: '${{ env.TOOL_VERSION_PYTHON }}'- name: Install and configure Poetry+ if: ${{ inputs.run }}uses: snok/install-poetry@v1with:version: '${{ env.TOOL_VERSION_POETRY }}'@@ -57,12 +62,15 @@ jobs:installer-parallel: true- name: Install dependencies+ if: ${{ inputs.run }}run: poetry install- name: Test build+ if: ${{ inputs.run }}run: poetry build- name: Run tests+ if: ${{ inputs.run }}run: poetry run pytest --verbose --numprocesses=4env:E2B_API_KEY: ${{ secrets.E2B_API_KEY }}