Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 53 additions & 0 deletions .github/workflows/multi-python-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Multi-Version Python Test

on:
push:
branches:
- master
paths-ignore:
- 'README.md'
- 'changelogs/**'
- 'dashboard/**'
pull_request:
workflow_dispatch:

jobs:
test:
name: Test on Python ${{ matrix.python-version }}
runs-on: ubuntu-latest
permissions:
contents: read
strategy:
fail-fast: false
matrix:
python-version: ['3.10', '3.11', '3.12', '3.13']

steps:
- name: Checkout
uses: actions/checkout@v5
with:
fetch-depth: 0

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}

- name: Install UV
run: pip install uv

- name: Install dependencies
run: uv sync
timeout-minutes: 15

- name: Create required directories
run: |
mkdir -p data/plugins
mkdir -p data/config
mkdir -p data/temp

- name: Run tests
run: |
export TESTING=true
export ZHIPU_API_KEY=${{ secrets.OPENAI_API_KEY }}
uv run pytest -v -o log_cli=true -o log_level=DEBUG
10 changes: 10 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,16 @@ keywords = [
"Astrbot Plugin"
]

classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"License :: OSI Approved :: GNU Affero General Public License v3",
"Operating System :: OS Independent",
]

dependencies = [
"aiocqhttp>=1.4.4",
"aiodocker>=0.24.0",
Expand Down
Loading