Skip to content

Commit

Permalink
Start tests with python
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubno committed Oct 15, 2024
1 parent 7e77475 commit bcea20f
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 32 deletions.
63 changes: 32 additions & 31 deletions .github/workflows/release_candidates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,37 +36,6 @@ jobs:
pnpm config set auto-install-peers true
pnpm config set exclude-links-from-lockfile true
- name: Install dependencies
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: |
npx playwright install --with-deps
pnpm run test
env:
E2B_API_KEY: ${{ secrets.E2B_API_KEY }}

- name: Release JS Candidate
working-directory: packages/js-sdk
if: ${{ contains( github.event.pull_request.labels.*.name, 'js-rc') }}
run: |
npm version prerelease --preid=${{ github.head_ref }}
npm publish --tag rc
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Release CLI Candidate
working-directory: packages/cli
if: ${{ contains( github.event.pull_request.labels.*.name, 'cli-rc') }}
run: |
npm version prerelease --preid=${{ github.head_ref }}
npm publish --tag rc
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Set up Python
uses: actions/setup-python@v4
Expand Down Expand Up @@ -102,6 +71,38 @@ jobs:
env:
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}

- name: Install dependencies
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: |
npx playwright install --with-deps
pnpm run test
env:
E2B_API_KEY: ${{ secrets.E2B_API_KEY }}

- name: Release JS Candidate
working-directory: packages/js-sdk
if: ${{ contains( github.event.pull_request.labels.*.name, 'js-rc') }}
run: |
npm version prerelease --preid=${{ github.head_ref }}
npm publish --tag rc
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Release CLI Candidate
working-directory: packages/cli
if: ${{ contains( github.event.pull_request.labels.*.name, 'cli-rc') }}
run: |
npm version prerelease --preid=${{ github.head_ref }}
npm publish --tag rc
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Commit new versions
if: ${{ contains( github.event.pull_request.labels.*.name, 'js-rc') || contains( github.event.pull_request.labels.*.name, 'cli-rc') || contains( github.event.pull_request.labels.*.name, 'python-rc') }}
run: |
Expand Down
2 changes: 1 addition & 1 deletion packages/js-sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "e2b",
"version": "0.16.2-beta.53",
"version": "0.16.2-beta.54",
"description": "E2B SDK that give agents cloud environments",
"homepage": "https://e2b.dev",
"license": "MIT",
Expand Down

0 comments on commit bcea20f

Please sign in to comment.