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
38 changes: 37 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -272,12 +272,44 @@ jobs:
- checkout
- check-if-tests-needed
- pip-install-deps:
requirements: "tests/requirements.txt"
requirements: "tests/requirements-aws.txt"
- run-tests-with-coverage-report:
tests: "tests_aws"
- store-pytest-results
- store-coverage-report

py312autowrapt:
docker:
- image: public.ecr.aws/docker/library/python:3.12
environment:
AUTOWRAPT_BOOTSTRAP: instana
working_directory: ~/repo
steps:
- checkout
- check-if-tests-needed
- pip-install-deps:
requirements: "tests/requirements-minimal.txt"
- run-tests-with-coverage-report:
tests: "tests_autowrapt"
- store-pytest-results
- store-coverage-report

py313autowrapt:
docker:
- image: public.ecr.aws/docker/library/python:3.13
environment:
AUTOWRAPT_BOOTSTRAP: instana
working_directory: ~/repo
steps:
- checkout
- check-if-tests-needed
- pip-install-deps:
requirements: "tests/requirements-minimal.txt"
- run-tests-with-coverage-report:
tests: "tests_autowrapt"
- store-pytest-results
- store-coverage-report

python313:
docker:
- image: public.ecr.aws/docker/library/python:3.13
Expand Down Expand Up @@ -423,6 +455,8 @@ workflows:
- py39gevent_starlette
- py312aws
- py312kafka
- py312autowrapt
- py313autowrapt
- final_job:
requires:
- python38
Expand All @@ -436,3 +470,5 @@ workflows:
- py39cassandra
- py39gevent_starlette
- py312aws
- py312autowrapt
- py313autowrapt
1 change: 1 addition & 0 deletions pytest.ini
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ pythonpath = src
testpaths =
tests
tests_aws
tests_autowrapt
markers =
original: mark test to use the original method instead of the mocked ones under `conftest.py`
2 changes: 2 additions & 0 deletions tests/requirements-aws.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-r requirements-minimal.txt
boto3
3 changes: 3 additions & 0 deletions tests/requirements-minimal.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
coverage>=5.5
pytest>=4.6
setuptools
6 changes: 6 additions & 0 deletions tests_autowrapt/test_autowrapt.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import os
import sys

def test_autowrapt_bootstrap():
assert os.environ.get("AUTOWRAPT_BOOTSTRAP") == "instana"
assert "instana" in sys.modules
Loading