From 4dfaac75d3f39e445317fed7ac2e15dabb060193 Mon Sep 17 00:00:00 2001 From: Jakob Keller <57402305+jakob-keller@users.noreply.github.com> Date: Sun, 18 Aug 2024 22:42:40 +0200 Subject: [PATCH 1/3] replace Travis CI badge by GitHub CI badge in documentation --- docs/index.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/index.rst b/docs/index.rst index ea3bccd0..91114fa5 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -5,8 +5,8 @@ aiobotocore's documentation! ============================ -.. image:: https://travis-ci.org/aio-libs/aiobotocore.svg?branch=master - :target: https://travis-ci.org/aio-libs/aiobotocore +.. image:: https://github.com/aio-libs/aiobotocore/actions/workflows/python-package.yml/badge.svg?branch=master + :target: https://github.com/aio-libs/aiobotocore/actions/workflows/python-package.yml .. image:: https://codecov.io/gh/aio-libs/aiobotocore/branch/master/graph/badge.svg :target: https://codecov.io/gh/aio-libs/aiobotocore .. image:: https://img.shields.io/pypi/v/aiobotocore.svg From 6b6da9a1040516832863a5eb82798831a06e8ca2 Mon Sep 17 00:00:00 2001 From: Jakob Keller <57402305+jakob-keller@users.noreply.github.com> Date: Sun, 18 Aug 2024 22:43:33 +0200 Subject: [PATCH 2/3] remove Travis CI workaround from `Makefile` --- Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Makefile b/Makefile index e9fc1ebe..91c59f4e 100644 --- a/Makefile +++ b/Makefile @@ -19,11 +19,10 @@ cov cover coverage: pre-commit python -Wd -m pytest -s -vv --cov-report term --cov-report html --cov aiobotocore ./tests @echo "open file://`pwd`/htmlcov/index.html" -# BOTO_CONFIG solves https://github.com/travis-ci/travis-ci/issues/7940 mototest: docker pull alpine docker pull lambci/lambda:python3.8 - BOTO_CONFIG=/dev/null python -Wd -X tracemalloc=5 -X faulthandler -m pytest -vv -m moto -n auto --cov-report term --cov-report html --cov-report xml --cov=aiobotocore --cov=tests --log-cli-level=DEBUG $(FLAGS) aiobotocore tests + python -Wd -X tracemalloc=5 -X faulthandler -m pytest -vv -m moto -n auto --cov-report term --cov-report html --cov-report xml --cov=aiobotocore --cov=tests --log-cli-level=DEBUG $(FLAGS) aiobotocore tests @echo "open file://`pwd`/htmlcov/index.html" clean: From 49185ad2a03cbda4d99c97069385ddcb61bd985a Mon Sep 17 00:00:00 2001 From: Jakob Keller <57402305+jakob-keller@users.noreply.github.com> Date: Sun, 18 Aug 2024 22:45:14 +0200 Subject: [PATCH 3/3] reapply moto mark to `test_get_credentials` --- tests/boto_tests/test_credentials.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/boto_tests/test_credentials.py b/tests/boto_tests/test_credentials.py index 73df755a..54ee44eb 100644 --- a/tests/boto_tests/test_credentials.py +++ b/tests/boto_tests/test_credentials.py @@ -864,9 +864,7 @@ async def test_createcredentialresolver(mock_session): assert isinstance(resolver, credentials.AioCredentialResolver) -# Disabled on travis as we cant easily disable the tests properly and -# travis has an IAM role which can't be applied to the mock session -# @pytest.mark.moto +@pytest.mark.moto @pytest.mark.asyncio async def test_get_credentials(mock_session): session = mock_session()