From 171c5ebac89d3e80f7b9f19f21b1467e045000d1 Mon Sep 17 00:00:00 2001 From: mawenbo <85687446+mawenbo-huawei@users.noreply.github.com> Date: Mon, 20 Nov 2023 11:17:38 +0800 Subject: [PATCH 1/8] Create pytest-ci.yml --- .github/workflows/pytest-ci.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/pytest-ci.yml diff --git a/.github/workflows/pytest-ci.yml b/.github/workflows/pytest-ci.yml new file mode 100644 index 000000000..bccdfe8eb --- /dev/null +++ b/.github/workflows/pytest-ci.yml @@ -0,0 +1,22 @@ +name: Pytest CI +on: + workflow_dispatch: + schedule: + - cron: '0 0 * * *' +jobs: + publish: + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v3 + - name: Set up Python + uses: actions/setup-python@v3 + with: + python-version: '3.10' + - name: Install dependencies + run: | + python -m pip install --upgrade pip + cd huaweicloud-sdk-core || exit 1 + pip install -r requirements.txt + pip install -r test-requirements.txt + - name: Pytest CI + run: pytest -s -v tests/ From ad73e42845bf7d078251b70cacfabc23d4e2c063 Mon Sep 17 00:00:00 2001 From: mawenbo <85687446+mawenbo-huawei@users.noreply.github.com> Date: Mon, 20 Nov 2023 11:20:05 +0800 Subject: [PATCH 2/8] Update pytest-ci.yml --- .github/workflows/pytest-ci.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pytest-ci.yml b/.github/workflows/pytest-ci.yml index bccdfe8eb..b8372878e 100644 --- a/.github/workflows/pytest-ci.yml +++ b/.github/workflows/pytest-ci.yml @@ -12,11 +12,10 @@ jobs: uses: actions/setup-python@v3 with: python-version: '3.10' - - name: Install dependencies + - name: Pytest CI run: | python -m pip install --upgrade pip cd huaweicloud-sdk-core || exit 1 pip install -r requirements.txt pip install -r test-requirements.txt - - name: Pytest CI - run: pytest -s -v tests/ + pytest -s -v tests/ From 0a5136b8afaf85760cfc7ab0d552da17dba31c0f Mon Sep 17 00:00:00 2001 From: mawenbo <85687446+mawenbo-huawei@users.noreply.github.com> Date: Fri, 24 Nov 2023 16:52:29 +0800 Subject: [PATCH 3/8] remove schedule --- .github/workflows/pytest-ci.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/pytest-ci.yml b/.github/workflows/pytest-ci.yml index b8372878e..578a4d549 100644 --- a/.github/workflows/pytest-ci.yml +++ b/.github/workflows/pytest-ci.yml @@ -1,8 +1,6 @@ name: Pytest CI on: workflow_dispatch: - schedule: - - cron: '0 0 * * *' jobs: publish: runs-on: ubuntu-22.04 From 684ff062c6c582d7fe9dd6936e7db97e2b81ec61 Mon Sep 17 00:00:00 2001 From: mawenbo <85687446+mawenbo-huawei@users.noreply.github.com> Date: Fri, 1 Dec 2023 15:50:17 +0800 Subject: [PATCH 4/8] Update README_CN.md --- README_CN.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README_CN.md b/README_CN.md index 1d5771059..932fcd8d2 100644 --- a/README_CN.md +++ b/README_CN.md @@ -227,7 +227,7 @@ if __name__ == "__main__": * [6.1 访问日志](#61-访问日志-top) * [6.2 HTTP 监听器](#62-http-监听器-top) * [7. 接口调用器](#7-接口调用器-top) - * [7.1 自定义请求头](71-自定义请求头-top) + * [7.1 自定义请求头](#71-自定义请求头-top) * [8. 文件上传与下载](#8-文件上传与下载-top) ### 1. 客户端连接参数 [:top:](#用户手册-top) From dc6a842295df4b94586f8bb9e1986d1098de24c3 Mon Sep 17 00:00:00 2001 From: mawenbo <85687446+mawenbo-huawei@users.noreply.github.com> Date: Wed, 13 Mar 2024 11:09:33 +0800 Subject: [PATCH 5/8] Update pytest-ci.yml --- .github/workflows/pytest-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pytest-ci.yml b/.github/workflows/pytest-ci.yml index 578a4d549..d255b7dab 100644 --- a/.github/workflows/pytest-ci.yml +++ b/.github/workflows/pytest-ci.yml @@ -16,4 +16,4 @@ jobs: cd huaweicloud-sdk-core || exit 1 pip install -r requirements.txt pip install -r test-requirements.txt - pytest -s -v tests/ + pytest tests/ -s -v --cov From 8089b4c317925db5f7ce7376f2d1dc5049e5b417 Mon Sep 17 00:00:00 2001 From: mawenbo <85687446+mawenbo-huawei@users.noreply.github.com> Date: Wed, 13 Mar 2024 14:10:10 +0800 Subject: [PATCH 6/8] Update pytest-ci.yml --- .github/workflows/pytest-ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pytest-ci.yml b/.github/workflows/pytest-ci.yml index d255b7dab..5e7146dcf 100644 --- a/.github/workflows/pytest-ci.yml +++ b/.github/workflows/pytest-ci.yml @@ -1,6 +1,8 @@ name: Pytest CI on: workflow_dispatch: + schedule: + - cron: '0 0 * * *' jobs: publish: runs-on: ubuntu-22.04 @@ -16,4 +18,4 @@ jobs: cd huaweicloud-sdk-core || exit 1 pip install -r requirements.txt pip install -r test-requirements.txt - pytest tests/ -s -v --cov + pytest tests/ -s -v --cov -k "not provider" From 7f785b9056bf33bf02c61578e43e25e6b2d96909 Mon Sep 17 00:00:00 2001 From: mawenbo <85687446+mawenbo-huawei@users.noreply.github.com> Date: Wed, 13 Mar 2024 14:14:59 +0800 Subject: [PATCH 7/8] Update test-requirements.txt --- huaweicloud-sdk-core/test-requirements.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/huaweicloud-sdk-core/test-requirements.txt b/huaweicloud-sdk-core/test-requirements.txt index d43c5bfe3..304491699 100644 --- a/huaweicloud-sdk-core/test-requirements.txt +++ b/huaweicloud-sdk-core/test-requirements.txt @@ -1,3 +1,4 @@ +-r requirements.txt pytest pytest-cov pytest-mock From fd78a74fdccdc8a5abdb1c2c9d1ae9f244bca6e0 Mon Sep 17 00:00:00 2001 From: mawenbo <85687446+mawenbo-huawei@users.noreply.github.com> Date: Wed, 13 Mar 2024 14:18:11 +0800 Subject: [PATCH 8/8] Update pytest-ci.yml --- .github/workflows/pytest-ci.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/pytest-ci.yml b/.github/workflows/pytest-ci.yml index 5e7146dcf..3a0962a30 100644 --- a/.github/workflows/pytest-ci.yml +++ b/.github/workflows/pytest-ci.yml @@ -16,6 +16,5 @@ jobs: run: | python -m pip install --upgrade pip cd huaweicloud-sdk-core || exit 1 - pip install -r requirements.txt pip install -r test-requirements.txt - pytest tests/ -s -v --cov -k "not provider" + ${{ vars.CI_CMD }}