Skip to content

Commit

Permalink
🔥 v0.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
kexue-z committed Jun 26, 2023
1 parent 3283532 commit 5f7398d
Show file tree
Hide file tree
Showing 10 changed files with 1,507 additions and 49 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- "master"
- "dev"
pull_request:
branches:
- "master"
Expand All @@ -26,15 +27,19 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
architecture: "x64"
- uses: Gr1N/setup-poetry@v7
- uses: actions/cache@v2
- uses: pdm-project/setup-pdm@v3
name: Setup PDM
with:
path: ~/.cache/pypoetry/virtualenvs
key: ${{ runner.os }}-poetry-${{ inputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
- run: poetry install
python-version: ${{ matrix.python-version }}
# TODO:修改 cache
# - uses: actions/cache@v2
# with:
# path: ~/.cache/pypoetry/virtualenvs
# key: ${{ runner.os }}-poetry-${{ inputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
- run: pdm install
shell: bash
- name: Run tests
run: poetry run pytest -s
run: pdm run pytest -s
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
with:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -130,3 +130,4 @@ dmypy.json

# Pyre type checker
.pyre/
.pdm-python
10 changes: 10 additions & 0 deletions nonebot_plugin_htmlrender/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,16 @@
template_to_pic,
template_to_html,
)
from nonebot.plugin import PluginMetadata

__plugin_meta__ = PluginMetadata(
name="nonebot-plugin-htmlrender",
description="通过浏览器渲染图片",
usage="提供多个易用API md_to_pic html_to_pic text_to_pic template_to_pic capture_element 等",
type="library",
homepage="https://github.com/kexue-z/nonebot-plugin-htmlrender",
extra={},
)

driver = nonebot.get_driver()
config = driver.config
Expand Down
Loading

0 comments on commit 5f7398d

Please sign in to comment.