Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/charts_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
defaults:
run:
working-directory: ./chart_data_extractor
name: Build and test Chart Data Extractor
name: Chart Data Extractor - Build and test
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/js_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
defaults:
run:
working-directory: ./js
name: Build and test SDK
name: JS SDK - Build and test
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
Expand Down
26 changes: 26 additions & 0 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Pull Request

permissions:
contents: read
id-token: write

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

on:
pull_request:
branches:
- main

jobs:
js-sdk:
uses: ./.github/workflows/js_tests.yml
secrets:
E2B_API_KEY: ${{ secrets.E2B_API_KEY }}
python-sdk:
uses: ./.github/workflows/python_tests.yml
secrets:
E2B_API_KEY: ${{ secrets.E2B_API_KEY }}
charts-tests:
uses: ./.github/workflows/charts_tests.yml
2 changes: 1 addition & 1 deletion .github/workflows/python_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
defaults:
run:
working-directory: ./python
name: Build and test SDK
name: Python SDK - Build and test
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
Expand Down
12 changes: 3 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,15 +108,9 @@ jobs:
IS_RELEASE=$(./.github/scripts/is_release_for_package.sh "@e2b/code-interpreter-template")
echo "release=$IS_RELEASE" >> "$GITHUB_OUTPUT"

charts-tests:
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this isn't needed, because it will run already in PR

name: Charts tests
needs: [changes]
if: needs.changes.outputs.charts == 'true'
uses: ./.github/workflows/charts_tests.yml

charts-release:
name: Charts release
needs: [charts-tests]
if: needs.changes.outputs.charts == 'true'
runs-on: ubuntu-latest
outputs:
Expand Down Expand Up @@ -243,8 +237,8 @@ jobs:
needs: [changes, build-template]
if: always() &&
!contains(needs.*.result, 'failure') &&
!contains(needs.*.result, 'cancelled') &&
(needs.changes.outputs.python == 'true' || needs.changes.outputs.template == 'true')
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this isn't needed, because it will run already in PR

!contains(needs.*.result, 'cancelled') &&
needs.changes.outputs.template == 'true'
uses: ./.github/workflows/python_tests.yml
secrets: inherit

Expand All @@ -254,7 +248,7 @@ jobs:
if: always() &&
!contains(needs.*.result, 'failure') &&
!contains(needs.*.result, 'cancelled') &&
(needs.changes.outputs.js == 'true' || needs.changes.outputs.template == 'true')
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this isn't needed, because it will run already in PR

needs.changes.outputs.template == 'true'
uses: ./.github/workflows/js_tests.yml
secrets: inherit

Expand Down
Loading