Merge pull request #31 from mawenbo-huawei/master

python ci workflow
This commit is contained in:
mawenbo 2024-03-13 14:21:59 +08:00 committed by GitHub
commit 9ab59ac6fe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 21 additions and 0 deletions

20
.github/workflows/pytest-ci.yml vendored Normal file
View File

@ -0,0 +1,20 @@
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: Pytest CI
run: |
python -m pip install --upgrade pip
cd huaweicloud-sdk-core || exit 1
pip install -r test-requirements.txt
${{ vars.CI_CMD }}

View File

@ -1,3 +1,4 @@
-r requirements.txt
pytest pytest
pytest-cov pytest-cov
pytest-mock pytest-mock