Skip to content

Commit

Permalink
⚗️ Technical preview
Browse files Browse the repository at this point in the history
- 使用 PDM 重新实现。
  • Loading branch information
Lancercmd committed May 30, 2024
1 parent e0c2cea commit 0bd98ec
Show file tree
Hide file tree
Showing 14 changed files with 458 additions and 10,133 deletions.
4 changes: 4 additions & 0 deletions .env.prod.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
HOST=127.0.0.1
PORT=8080
COMMAND_START=["/"]
COMMAND_SEP=["."]
23 changes: 8 additions & 15 deletions .github/workflows/perform-a-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,20 @@ name: Perform a test

on:
schedule:
- cron: "0 */12 * * *"
- cron: "0 6,18 * * *"
workflow_dispatch:

jobs:
main:
name: Python 3.10
name: Python 3.12
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10"]
python-version: ["3.12"]
steps:
- name: Initialize
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install poetry
- uses: actions/checkout@v4
- name: Setup PDM
uses: pdm-project/setup-pdm@v4
- name: Run
run: |
python -m pip install -U pip poetry
- name: Run Python
run: |
cd nonebot2_store_test/
python . -l 50
pdm run python run.py -l 100
43 changes: 37 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ parts/
sdist/
var/
wheels/
pip-wheel-metadata/
share/python-wheels/
*.egg-info/
.installed.cfg
Expand Down Expand Up @@ -50,6 +49,7 @@ coverage.xml
*.py,cover
.hypothesis/
.pytest_cache/
cover/

# Translations
*.mo
Expand All @@ -72,6 +72,7 @@ instance/
docs/_build/

# PyBuilder
.pybuilder/
target/

# Jupyter Notebook
Expand All @@ -82,7 +83,9 @@ profile_default/
ipython_config.py

# pyenv
.python-version
# For a library or package, you might want to ignore these files since the code is
# intended to run in multiple environments; otherwise, check them in:
# .python-version

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
Expand All @@ -91,7 +94,22 @@ ipython_config.py
# install all needed dependencies.
#Pipfile.lock

# PEP 582; used by e.g. github.com/David-OConnor/pyflow
# poetry
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
# This is especially recommended for binary packages to ensure reproducibility, and is more
# commonly ignored for libraries.
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
#poetry.lock

# pdm
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
#pdm.lock
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
# in version control.
# https://pdm.fming.dev/#use-with-ide
.pdm.toml

# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
__pypackages__/

# Celery stuff
Expand All @@ -104,7 +122,6 @@ celerybeat.pid
# Environments
.env
.venv
.vs
env/
venv/
ENV/
Expand All @@ -129,5 +146,19 @@ dmypy.json
# Pyre type checker
.pyre/

# Repository
nonebot2_store_test/workflow/*/
# pytype static type analyzer
.pytype/

# Cython debug symbols
cython_debug/

# PyCharm
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
# and can be added to the global gitignore or merged into this file. For a more nuclear
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/


tests/
.pdm-python
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# NoneBot 商店插件测试

[![pdm-managed](https://img.shields.io/badge/pdm-managed-blueviolet)](https://pdm-project.org)

定期测试 NoneBot 插件商店内的插件,确认其基础可靠性。

基于 [PDM](https://pdm-project.org/)[Git](https://git-scm.com/) 实现。

Nonebot 现已使用专门的 [registry](https://github.com/nonebot/registry) 项目,于插件发布提交时,对插件进行友好的自动化测试。本项目作为其原型,将维持严格的测试。
86 changes: 0 additions & 86 deletions README.rst

This file was deleted.

Empty file removed nonebot2_store_test/__init.__.py
Empty file.
Loading

0 comments on commit 0bd98ec

Please sign in to comment.