Skip to content

Added CI/CD for code interpreter template #90

Added CI/CD for code interpreter template

Added CI/CD for code interpreter template #90

Workflow file for this run

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:
build-template:
uses: ./.github/workflows/build_test_template.yml

Check failure on line 18 in .github/workflows/pull_request.yml

View workflow run for this annotation

GitHub Actions / Pull Request

Invalid workflow file

The workflow is not valid. .github/workflows/pull_request.yml (Line: 18, Col: 11): Secret E2B_TEST_ACCESS_TOKEN is required, but not provided while calling. .github/workflows/pull_request.yml (Line: 21, Col: 25): Invalid secret, E2B_ACCESS_TOKEN is not defined in the referenced workflow.
secrets:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
E2B_ACCESS_TOKEN: ${{ secrets.E2B_TEST_ACCESS_TOKEN }}
with:
E2B_DOMAIN: ${{ vars.E2B_DOMAIN }}
js-sdk:
uses: ./.github/workflows/js_tests.yml
needs: build-template
if: always() && !contains(needs.*.result, 'failure') && !contains(needs.*.result, 'cancelled')
secrets:
E2B_API_KEY: ${{ secrets.E2B_API_KEY }}
with:
E2B_DOMAIN: ${{ vars.E2B_DOMAIN }}
E2B_TEST_TEMPLATE: ${{ needs.build-template.outputs.template_id }}
python-sdk:
uses: ./.github/workflows/python_tests.yml
needs: build-template
if: always() && !contains(needs.*.result, 'failure') && !contains(needs.*.result, 'cancelled')
secrets:
E2B_API_KEY: ${{ secrets.E2B_API_KEY }}
with:
E2B_DOMAIN: ${{ vars.E2B_DOMAIN }}
E2B_TEST_TEMPLATE: ${{ needs.build-template.outputs.template_id }}
cleanup-build-template:
uses: ./.github/workflows/cleanup_build_template.yml
needs: [build-template, js-sdk, python-sdk]
if: always() && !contains(needs.*.result, 'failure') && !contains(needs.*.result, 'cancelled')
secrets:
E2B_ACCESS_TOKEN: ${{ secrets.E2B_ACCESS_TOKEN }}
with:
E2B_DOMAIN: ${{ vars.E2B_DOMAIN }}
E2B_TEST_TEMPLATE: ${{ needs.build-template.outputs.template_id }}
charts-tests:
uses: ./.github/workflows/charts_tests.yml