Skip to content
Merged
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
10 changes: 5 additions & 5 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,21 @@ jobs:
- name: recovery tag information
run: git fetch --tags --force

- uses: actions/setup-python@v6
- uses: astral-sh/setup-uv@v7
with:
python-version: '3.14'
cache: 'pip'
enable-cache: true

- name: install dependencies
run: pip install '.[docs]'
run: uv sync --locked --extra docs

- name: configure git
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"

- name: build docs
run: mike deploy --push --update-aliases --alias-type=redirect ${GITHUB_REF#refs/tags/} latest
run: uv run mike deploy --push --update-aliases --alias-type=redirect ${GITHUB_REF#refs/tags/} latest

- name: set default
run: mike set-default --push latest
run: uv run mike set-default --push latest
8 changes: 4 additions & 4 deletions .github/workflows/example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,16 @@ jobs:
steps:
- uses: actions/checkout@v6

- uses: actions/setup-python@v6
- uses: astral-sh/setup-uv@v7
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
enable-cache: true

- name: build
run: pip install .
run: uv sync --locked

- name: run
run: python examples/main.py
run: uv run python examples/main.py

javascript:
runs-on: ubuntu-latest
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,16 @@ jobs:
steps:
- uses: actions/checkout@v6

- uses: actions/setup-python@v6
- uses: astral-sh/setup-uv@v7
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
enable-cache: true

- name: dependencies
run: pip install '.[dev]'
run: uv sync --locked --extra dev

- name: pytest
run: pytest --cov=pyds
run: uv run pytest --cov=pyds

wheels:
runs-on: ${{ matrix.os }}
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ npm install
npm run build

# Build Python package
pip install -e ".[dev]"
uv sync --extra dev

# Build C++ library
cmake -B build
Expand Down
7 changes: 3 additions & 4 deletions docs/getting-started/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ To install from source with development dependencies:
```bash
git clone https://github.com/USTC-KnowledgeComputingLab/ds.git
cd ds
pip install -e ".[dev]"
uv sync --extra dev
```

## C++
Expand Down Expand Up @@ -112,7 +112,7 @@ npm run build
### Python

```bash
pip install -e ".[dev]"
uv sync --extra dev
```

### C++
Expand All @@ -135,8 +135,7 @@ npm test
### Python Tests

```bash
pip install pytest
pytest
uv run pytest
```

### C++ Tests
Expand Down