👷 use pytest-xdist to accelerate test (#186)

* 👷 use pytest-xdist to accelerate test

*  mark flaky

* test(mcbbsnews): 删除重复测试,为测试添加flaky

---------

Co-authored-by: hemengyang <hmy0119@gmail.com>
Co-authored-by: AzideCupric <rukuy@qq.com>
This commit is contained in:
felinae98
2023-03-03 17:16:15 +08:00
committed by GitHub
parent 0201d5b316
commit c3a764581e
10 changed files with 78 additions and 19339 deletions
+2 -2
View File
@@ -75,7 +75,7 @@ jobs:
run: poetry install
- name: Run Pytest
run: poetry run pytest --cov-report xml --cov=./src/plugins/nonebot_bison -k 'not compare and not render'
run: poetry run pytest --cov-report xml --cov=./src/plugins/nonebot_bison -k 'not compare and not render' -n auto
- name: Upload coverage report
uses: codecov/codecov-action@v3
@@ -108,7 +108,7 @@ jobs:
run: poetry install
- name: Run Pytest
run: poetry run pytest --cov-report xml --cov=./src/plugins/nonebot_bison -k 'not compare'
run: poetry run pytest --cov-report xml --cov=./src/plugins/nonebot_bison -k 'not compare' -n auto
- name: Upload coverage report
uses: codecov/codecov-action@v3