forked from TencentBlueKing/bk-plugin-framework-python
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (29 loc) · 812 Bytes
/
Copy pathframework_unittest.yml
File metadata and controls
36 lines (29 loc) · 812 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Framework Unittest
on:
workflow_call:
jobs:
tests:
name: Python ${{ matrix.python-version }}
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: [3.10.5]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Set up Poetry
uses: abatilo/actions-poetry@v2.0.0
with:
poetry-version: 1.8.5
- name: Test
run: |
cd bk-plugin-framework
poetry install
poetry run coverage run -m pytest -vv --disable-pytest-warnings
poetry run coverage xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}