Skip to content

Merge pull request #34 from xiaoxiaoyao/feature/ci-improvements-20260409 #13

Merge pull request #34 from xiaoxiaoyao/feature/ci-improvements-20260409

Merge pull request #34 from xiaoxiaoyao/feature/ci-improvements-20260409 #13

Workflow file for this run

name: Python Test CI
on:
push:
branches: [ master, optimize/code-quality-20260326 ]
pull_request:
branches: [ master ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
# 安装项目依赖
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Run tests
run: |
# 运行所有测试
python run_all_tests.py
- name: Upload test results
if: always()
uses: actions/upload-artifact@v4
with:
name: test-results
path: test-results/