Skip to content

Commit 72b2b7a

Browse files
committed
feat: 更新文档和.gitignore以反映v2.1.0-alpha2版本
- 在.gitignore中添加CLAUDE.md、.claude/、.archive/和run/以排除不必要的文件和目录。 - 删除多个文档文件,包括API_REFERENCE.md、BACKWARD_COMPATIBILITY_REPORT.md、BEST_PRACTICES.md、COMPATIBILITY_SUMMARY.md、CONTRIBUTING.md、DOCS_UPDATE_SUMMARY.md、DOCUMENTATION_UPDATE.md、FINAL_SUMMARY.md、INSTALLATION.md、QUICKSTART.md等,以简化文档结构并集中更新至新版本。 - 更新README.md以反映新特性和文档结构调整,确保用户获取最新信息。 此更新旨在提升文档的可用性和一致性,同时保持项目的整洁性。
1 parent f7eab3d commit 72b2b7a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+3964
-5258
lines changed
Lines changed: 62 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,60 +1,75 @@
1-
name: qa-community-rust-go docker
1+
# QUANTAXIS 2.1.0 Docker镜像构建和发布
2+
#
3+
# 触发条件:
4+
# - 推送到master分支
5+
# - 创建tag (v*.*.*)
6+
# - 手动触发
7+
#
8+
# 作者: @yutiansut @quantaxis
9+
10+
name: Build and Publish Docker Images
211

312
on:
413
push:
5-
# Publish `master` as Docker `latest` image.
614
branches:
715
- master
8-
9-
# Publish `v1.2.3` tags as releases.
16+
- develop
1017
tags:
11-
- v*
12-
13-
# Run tests for any PRs.
18+
- 'v*.*.*'
1419
pull_request:
20+
branches:
21+
- master
22+
workflow_dispatch:
1523

1624
env:
17-
# TODO: Change variable to your image's name.
18-
IMAGE_NAME: qa-community-rust-go
25+
REGISTRY: docker.io
26+
IMAGE_NAME: quantaxis/quantaxis
1927

2028
jobs:
21-
22-
# Push image to GitHub Packages.
23-
# See also https://docs.docker.com/docker-hub/builds/
24-
push:
25-
# Ensure test job passes before pushing image.
26-
27-
29+
# 测试任务
30+
test:
31+
name: Run Tests
2832
runs-on: ubuntu-latest
29-
if: github.event_name == 'push'
30-
3133
steps:
32-
- uses: actions/checkout@v2
33-
34-
- name: Build image
35-
run: cd docker/qa-community-rust/ && docker build . --file Dockerfile --tag $IMAGE_NAME
36-
37-
- name: Log into registry
38-
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login docker.pkg.github.com -u ${{ github.actor }} --password-stdin
39-
40-
- name: Push image
41-
run: |
42-
IMAGE_ID=docker.pkg.github.com/${{ github.repository }}/$IMAGE_NAME
43-
44-
# Change all uppercase to lowercase
45-
IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
46-
47-
# Strip git ref prefix from version
48-
VERSION=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,')
49-
50-
# Strip "v" prefix from tag name
51-
[[ "${{ github.ref }}" == "refs/tags/"* ]] && VERSION=$(echo $VERSION | sed -e 's/^v//')
52-
53-
# Use Docker `latest` tag convention
54-
[ "$VERSION" == "master" ] && VERSION=latest
55-
56-
echo IMAGE_ID=$IMAGE_ID
57-
echo VERSION=$VERSION
58-
59-
docker tag $IMAGE_NAME $IMAGE_ID:$VERSION
60-
docker push $IMAGE_ID:$VERSION
34+
- name: Checkout代码
35+
uses: actions/checkout@v4
36+
37+
- name: 设置Python环境
38+
uses: actions/setup-python@v5
39+
with:
40+
python-version: '3.11'
41+
cache: 'pip'
42+
43+
- name: 运行兼容性验证
44+
run: python scripts/verify_compatibility.py
45+
46+
# 构建Docker镜像
47+
build:
48+
name: Build Docker Image
49+
needs: test
50+
runs-on: ubuntu-latest
51+
permissions:
52+
contents: read
53+
packages: write
54+
steps:
55+
- name: Checkout代码
56+
uses: actions/checkout@v4
57+
58+
- name: 设置Docker Buildx
59+
uses: docker/setup-buildx-action@v3
60+
61+
- name: 登录到Docker Hub
62+
if: github.event_name != 'pull_request'
63+
uses: docker/login-action@v3
64+
with:
65+
username: \${{ secrets.DOCKER_USERNAME }}
66+
password: \${{ secrets.DOCKER_PASSWORD }}
67+
68+
- name: 构建并推送Docker镜像
69+
uses: docker/build-push-action@v5
70+
with:
71+
context: .
72+
platforms: linux/amd64,linux/arm64
73+
push: \${{ github.event_name != 'pull_request' }}
74+
cache-from: type=gha
75+
cache-to: type=gha,mode=max

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,10 @@ ENV/
143143

144144

145145

146-
146+
CLAUDE.md
147+
.claude/
148+
.archive/
149+
run/
147150
# jupyter-kernel
148151

149152
kernel*.json

0 commit comments

Comments
 (0)