mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2025-12-15 14:22:55 +08:00
👷 添加pytest
This commit is contained in:
parent
ec9b2abb53
commit
df1a84bf77
12
.github/workflows/bot_check.yml
vendored
12
.github/workflows/bot_check.yml
vendored
@ -28,7 +28,14 @@ jobs:
|
|||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: ~/.cache/pypoetry
|
path: ~/.cache/pypoetry
|
||||||
key: poetry-cache-${{ runner.os }}-${{ steps.setup_python.outputs.python-version }}
|
key: poetry-cache-${{ runner.os }}-${{ steps.setup_python.outputs.python-version }}-${{ hashFiles('pyproject.toml') }}
|
||||||
|
|
||||||
|
- name: Cache playwright cache
|
||||||
|
id: cache-playwright
|
||||||
|
uses: actions/cache@v3
|
||||||
|
with:
|
||||||
|
path: ~/.cache/ms-playwright
|
||||||
|
key: playwright-cache-${{ runner.os }}-${{ steps.setup_python.outputs.python-version }}
|
||||||
|
|
||||||
- name: Cache Data cache
|
- name: Cache Data cache
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
@ -44,6 +51,9 @@ jobs:
|
|||||||
poetry install --no-root
|
poetry install --no-root
|
||||||
poetry run pip install pydantic==1.10
|
poetry run pip install pydantic==1.10
|
||||||
|
|
||||||
|
- name: Run tests
|
||||||
|
run: poetry run pytest --cov=zhenxun --cov-report xml
|
||||||
|
|
||||||
- name: Check bot run
|
- name: Check bot run
|
||||||
id: bot_check_run
|
id: bot_check_run
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user