mirror of
https://github.com/suyiiyii/nonebot-bison.git
synced 2025-06-05 11:26:43 +08:00
Merge branch 'dev' of https://github.com/AzideCupric/nonebot-bison into dev
This commit is contained in:
commit
c8e25689ba
18
.github/workflows/pytest.yml
vendored
18
.github/workflows/pytest.yml
vendored
@ -1,7 +1,7 @@
|
|||||||
name: auto-pytest
|
name: auto-pytest
|
||||||
on: [push]
|
on: [push]
|
||||||
jobs:
|
jobs:
|
||||||
do-a-test:
|
Pytest:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
@ -17,8 +17,16 @@ jobs:
|
|||||||
- name: Browser install
|
- name: Browser install
|
||||||
run: poetry run playwright install-deps && poetry run playwright install chromium
|
run: poetry run playwright install-deps && poetry run playwright install chromium
|
||||||
- name: Coverage test
|
- name: Coverage test
|
||||||
run: poetry run pytest --cov-report html --cov-report xml --cov=./src/plugins/nonebot_bison --junitxml=test-results/junit.xml -k 'not compare'
|
run: poetry run pytest -v --cov-report=xml --cov=./src/plugins/nonebot_bison -k 'not compare'
|
||||||
- name: Collect coverage
|
# - name: Upload coverage to Codecov
|
||||||
run: poetry run coverage html --include='src/*'
|
# uses: codecov/codecov-action@v2
|
||||||
|
# with:
|
||||||
|
# directory: ./coverage/reports/
|
||||||
|
# env_vars: ubuntu-latest,'3.10'
|
||||||
|
# fail_ci_if_error: true
|
||||||
|
# files: ./coverage.xml
|
||||||
|
# flags: unittests
|
||||||
|
# name: codecov-umbrella
|
||||||
|
# path_to_write_report: ./coverage/codecov_report.txt
|
||||||
|
# verbose: true
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user