Skip to content
Open
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
62 changes: 62 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: CI

on:
push:
branches:
- main
- feat/**
- fix/**
- refactor/**
- docs/**
- test/**
- chore/**
pull_request:

jobs:
backend-tests:
name: Backend Tests
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: "pip"
cache-dependency-path: |
requirements.txt
requirements-dev.txt

- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements-dev.txt

- name: Run pytest
run: pytest -q

frontend-build:
name: Frontend Build
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
cache: "npm"
cache-dependency-path: frontend/package-lock.json

- name: Install frontend dependencies
working-directory: frontend
run: npm ci

- name: Build frontend
working-directory: frontend
run: npm run build
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ config/settings.local.yaml
# 回测报告和图表
output/
reports/
trades.csv
result.csv
*.png
*.jpg
*.html
Expand All @@ -74,5 +76,11 @@ htmlcov/
# ========== Jupyter ==========
.ipynb_checkpoints/

# ========== Frontend ==========
frontend/node_modules/
frontend/dist/

# ========== Claude Code ==========
.claude/
.codex
.codex/
Loading
Loading