From 88152734bfe65ca0bb44b6a7b5e647514641f97b Mon Sep 17 00:00:00 2001 From: Jackson Tian Date: Tue, 11 Jun 2024 14:13:46 +0800 Subject: [PATCH 1/2] Enhance project specifications --- .gitignore | 3 ++- .travis.yml | 17 ----------------- README-CN.md | 3 +++ README.md | 4 ++++ 4 files changed, 9 insertions(+), 18 deletions(-) delete mode 100644 .travis.yml diff --git a/.gitignore b/.gitignore index f313b60..3b6bdb5 100644 --- a/.gitignore +++ b/.gitignore @@ -5,4 +5,5 @@ __pycache__/ .pytest_cache/ .coverage *.pyc -venv/ \ No newline at end of file +venv/ +.DS_Store \ No newline at end of file diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 6fab49a..0000000 --- a/.travis.yml +++ /dev/null @@ -1,17 +0,0 @@ -language: python -python: - - "3.6" - - "3.7" - - "3.8" - - "3.9" -env: - - PYTHONPATH=$PYTHONPATH:$TRAVIS_BUILD_DIR -# command to install dependencies -install: - - pip install coverage - - pip install alibabacloud-tea -# command to run tests -script: - - coverage run --source=alibabacloud_credentials -m pytest tests/test_* - - wget --no-check-certificate https://codecov.io/bash -O codecov.sh - - bash codecov.sh -cF "python" \ No newline at end of file diff --git a/README-CN.md b/README-CN.md index e2afb4c..1a59f75 100644 --- a/README-CN.md +++ b/README-CN.md @@ -4,6 +4,9 @@ # Alibaba Cloud Credentials for Python +[![PyPI version](https://badge.fury.io/py/alibabacloud_credentials.svg)](https://badge.fury.io/py/alibabacloud_credentials) +[![Python Test](https://github.com/aliyun/credentials-python/actions/workflows/testPython.yml/badge.svg)](https://github.com/aliyun/credentials-python/actions/workflows/testPython.yml) +[![codecov](https://codecov.io/gh/aliyun/credentials-python/graph/badge.svg?token=Y0J1E7T35I)](https://codecov.io/gh/aliyun/credentials-python) ## 安装 diff --git a/README.md b/README.md index a3b3fd2..64d5b70 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,10 @@ English | [简体中文](README-CN.md) # Alibaba Cloud Credentials for Python +[![PyPI version](https://badge.fury.io/py/alibabacloud_credentials.svg)](https://badge.fury.io/py/alibabacloud_credentials) +[![Python Test](https://github.com/aliyun/credentials-python/actions/workflows/testPython.yml/badge.svg)](https://github.com/aliyun/credentials-python/actions/workflows/testPython.yml) +[![codecov](https://codecov.io/gh/aliyun/credentials-python/graph/badge.svg?token=Y0J1E7T35I)](https://codecov.io/gh/aliyun/credentials-python) + ## Installation - **Install with pip** From 400081bd96c10b97edf51854ad75d6cc2d8fafdc Mon Sep 17 00:00:00 2001 From: Jackson Tian Date: Tue, 11 Jun 2024 14:19:16 +0800 Subject: [PATCH 2/2] use codecov action instead of --- .github/workflows/testPython.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/testPython.yml b/.github/workflows/testPython.yml index 207d829..7f2a558 100644 --- a/.github/workflows/testPython.yml +++ b/.github/workflows/testPython.yml @@ -31,5 +31,7 @@ jobs: ALIBABA_CLOUD_ROLE_SESSION_NAME: ${{ secrets.ALIBABA_CLOUD_ROLE_SESSION_NAME }} ALIBABA_CLOUD_OIDC_TOKEN_FILE: ${{ secrets.ALIBABA_CLOUD_OIDC_TOKEN_FILE }} ALIBABA_CLOUD_OIDC_PROVIDER_ARN: ${{ secrets.ALIBABA_CLOUD_OIDC_PROVIDER_ARN }} - - name: CodeCov - run: bash <(curl -s https://codecov.io/bash) -cF python \ No newline at end of file + - name: Upload Coverage Report + uses: codecov/codecov-action@v4 + with: + token: ${{ secrets.CODECOV_TOKEN }} # required \ No newline at end of file