Skip to content

Commit

Permalink
Run contract tests in pr- and main- build workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
thpierce committed Feb 13, 2024
1 parent de30039 commit 2f65876
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/main_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- main
- contract-tests-workflow
- "release/v*"
env:
AWS_DEFAULT_REGION: us-east-1
Expand Down Expand Up @@ -76,4 +77,10 @@ jobs:
name: aws_opentelemetry_distro-${{ steps.python_output.outputs.ADOT_PYTHON_VERSION}}-py3-none-any.whl
path: dist/${{ steps.staging_wheel_output.outputs.STAGING_WHEEL}}

# TODO: Add Contract test and E2E test
- name: Set up and run contract tests with pytest
run: |
bash contract-tests/set-up-contract-tests.sh
pip install pytest
pytest contract-tests/tests
# TODO: Add E2E tests
9 changes: 8 additions & 1 deletion .github/workflows/pr_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
branches:
- main
- "release/v*"
push:
branches:
- contract-tests-workflow

env:
AWS_DEFAULT_REGION: us-east-1
Expand Down Expand Up @@ -44,4 +47,8 @@ jobs:
- name: run spell check tox
run: tox -e ${{ matrix.tox-environment }}

# TODO: Add Contract test.
- name: Set up and run contract tests with pytest
run: |
bash contract-tests/set-up-contract-tests.sh
pip install pytest
pytest contract-tests/tests

0 comments on commit 2f65876

Please sign in to comment.