Skip to content

Commit

Permalink
更新描述文件支持更多的Alist版本
Browse files Browse the repository at this point in the history
  • Loading branch information
lee-cq committed Dec 17, 2023
1 parent 5208f9c commit 7ca14c0
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 17 deletions.
33 changes: 18 additions & 15 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,24 +13,27 @@ jobs:
strategy:
max-parallel: 4
matrix:
python-version: ['3.10', '3.11', '3.12']
alist-version: [ '3.29.0', '3.29.1' ]
python-version: [ '3.10', '3.11', '3.12' ]
fail-fast: false

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v3

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install git+https://github.com/lee-cq/alist-sdk
pip install -e .
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install git+https://github.com/lee-cq/alist-sdk
pip install -e .
- name: Run Tests
run: |
pip install pytest
python -m pytest --log-level=INFO
- name: Run Tests
run: |
pip install pytest
python -m pytest --log-level=INFO
env:
ALIST_VERSION: ${{ matrix.alist-version }}
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ Alist 同步工具

## 预期同步模式:

### 1. copy 简单复制 (已经实现)
### 1. copy 简单复制 (已实现)
*命令:* `alist-sync copy -h http://localhost:5244 -u admin -p 123456 -s /源目录 -t /目标目录1 -t /目标目录2 ...`
#### 工作原理:
将源目录中的文件分别同步到全部的目标目录中,
1. 如果目标目录中已经存在该文件,则跳过
2. 忽略存在与目标目录中但不存在于源目录中的文件

### 2. mirror 镜像复制 (实现中)
### 2. mirror 镜像复制 (已实现)
*命令:* `alist-sync mirror -h http://localhost:5244 -u admin -p 123456 -s /源目录 -t /目标目录1 -t /目标目录2 ...`
#### 工作原理:
将源目录中的文件分别镜像同步到全部的目标目录中,
Expand Down

0 comments on commit 7ca14c0

Please sign in to comment.