-
Notifications
You must be signed in to change notification settings - Fork 1
48 lines (45 loc) · 1.22 KB
/
plugin-test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Nonebot Plugin Test
on:
workflow_dispatch:
push:
branches: [ "master" ]
paths:
- ".github/actions/setup-python/**"
- ".github/workflows/plugin-test.yml"
- "nonebot_plugin_dg_lab_play/**"
- "tests/**"
- "pyproject.toml"
- "poetry.lock"
pull_request:
branches: [ "master" ]
paths:
- ".github/actions/setup-python/**"
- ".github/workflows/plugin-test.yml"
- "nonebot_plugin_dg_lab_play/**"
- "tests/**"
- "pyproject.toml"
- "poetry.lock"
jobs:
plugin_test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: [ "3.9", "3.10", "3.11", "3.12" ]
name: nonebot2 plugin test
permissions:
issues: read
outputs:
result: ${{ steps.plugin-test.outputs.RESULT }}
output: ${{ steps.plugin-test.outputs.OUTPUT }}
metadata: ${{ steps.plugin-test.outputs.METADATA }}
steps:
- uses: actions/checkout@v4
- name: Setup Python environment
uses: ./.github/actions/setup-python
with:
python-version: ${{ matrix.python-version }}
- name: Test Plugin
id: plugin-test
run: |
poetry run python -m tests.plugin_test