docs: 更新 README 文档和 CI/CD 工作流

This commit is contained in:
xiatianxuan committed 2026-06-19 18:13:00 +08:00
1 parent ca942c05f6
commit 2b1dd9c25d
4 files changed
+140 -35

No files matched your search

+32
View File
@@ -0,0 +1,32 @@
name: CI
on:
push:
branches: [dev, main]
pull_request:
branches: [dev, main]
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ['3.10', '3.12']
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v3
with:
version: "latest"
- name: Set up Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}
- name: Install dependencies
run: uv sync
- name: Run tests
run: uv run pytest tests/ -q
+16 -4
View File
@@ -37,7 +37,7 @@ jobs:
python-version: '3.12'
- name: Install dependencies
run: pip install nuitka py7zr tqdm zstandard
run: pip install nuitka py7zr tqdm zstandard paramiko minio reedsolo watchdog
- name: Build executable
run: |
@@ -50,6 +50,10 @@ jobs:
--include-package=py7zr `
--include-package=tqdm `
--include-package=zstandard `
--include-package=paramiko `
--include-package=minio `
--include-package=reedsolo `
--include-package=watchdog `
main.py
- name: Upload to Release
@@ -68,7 +72,7 @@ jobs:
python-version: '3.12'
- name: Install dependencies
run: pip install nuitka py7zr tqdm zstandard
run: pip install nuitka py7zr tqdm zstandard paramiko minio reedsolo watchdog
- name: Build executable
run: |
@@ -81,6 +85,10 @@ jobs:
--include-package=py7zr \
--include-package=tqdm \
--include-package=zstandard \
--include-package=paramiko \
--include-package=minio \
--include-package=reedsolo \
--include-package=watchdog \
main.py
- name: Upload to Release
@@ -99,7 +107,7 @@ jobs:
python-version: '3.12'
- name: Install dependencies
run: pip install nuitka py7zr tqdm zstandard
run: pip install nuitka py7zr tqdm zstandard paramiko minio reedsolo watchdog
- name: Build executable
run: |
@@ -112,9 +120,13 @@ jobs:
--include-package=py7zr \
--include-package=tqdm \
--include-package=zstandard \
--include-package=paramiko \
--include-package=minio \
--include-package=reedsolo \
--include-package=watchdog \
main.py
- name: Upload to Release
uses: softprops/action-gh-release@v1
with:
files: sbackup-linux
files: sbackup-linux