Skip to content

Run e2e tests on each PR. #584

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
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
23 changes: 23 additions & 0 deletions ci/input_files/build.yaml.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ stages:
- test
- sign
- publish
- e2e

.python-before-script: &python-before-script
- pip install virtualenv
Expand Down Expand Up @@ -138,6 +139,8 @@ publish-layer-{{ $environment_name }} ({{ $runtime.name }}-{{ $runtime.arch }}):
tags: ["arch:amd64"]
image: registry.ddbuild.io/images/docker:20.10-py3
rules:
- if: '"{{ $environment_name }}" == "sandbox" && $REGION == "ap-east-1" && "{{ $runtime.arch }}" == "amd64"'
when: always
- if: '"{{ $environment_name }}" == "sandbox"'
when: manual
allow_failure: true
Expand Down Expand Up @@ -172,6 +175,26 @@ publish-layer-{{ $environment_name }} ({{ $runtime.name }}-{{ $runtime.arch }}):

{{- end }}

run-e2e:
stage: e2e
tags: ["arch:amd64"]
image: registry.ddbuild.io/images/docker:20.10-py3
needs: {{ range $runtime := (ds "runtimes").runtimes }}
- publish-layer-sandbox ({{ $runtime.name }}-amd64): [ap-east-1]
{{- end }}
trigger:
project: "DataDog/serverless-e2e-tests"
strategy: depend
variables:
LANGUAGES_SUBSET: python
PYTHON_38_VERSION: latest
PYTHON_39_VERSION: latest
PYTHON_310_VERSION: latest
PYTHON_311_VERSION: latest
PYTHON_312_VERSION: latest
PYTHON_313_VERSION: latest


publish-pypi-package:
stage: publish
tags: ["arch:amd64"]
Expand Down
Loading