Skip to content

Commit bb01322

Browse files
committed
add Action
1 parent 3926522 commit bb01322

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/testPython.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Python Test
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
python-version: [ 3.6, 3.7, 3.8, 3.9 ]
15+
steps:
16+
- uses: actions/checkout@v2
17+
- name: Set up Python ${{ matrix.python-version }}
18+
uses: actions/setup-python@v2
19+
with:
20+
python-version: ${{ matrix.python-version }}
21+
- name: Install dependencies
22+
run: pip install alibabacloud-tea coverage pytest
23+
- name: Test with unittest
24+
run: |
25+
coverage run --source="./alibabcloud_credentials" -m pytest tests/
26+
- name: CodeCov
27+
run: bash <(curl -s https://codecov.io/bash) -cF python

0 commit comments

Comments
 (0)