-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
53 lines (45 loc) · 1.18 KB
/
multi-python-test.yml
File metadata and controls
53 lines (45 loc) · 1.18 KB
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
49
50
51
52
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