Skip to content

Commit 9ef961a

Browse files
committed
update deps for improve doc and testing
1 parent 3839d65 commit 9ef961a

4 files changed

Lines changed: 53 additions & 6 deletions

File tree

.github/workflows/docs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ jobs:
2424
with:
2525
enable-cache: true
2626
- name: Sync documentation dependencies
27-
run: uv sync --locked --group doc
27+
run: uv sync --locked --only-group doc --no-install-project
2828
- name: Generate API reference stubs
2929
run: cargo run --bin stub_gen
3030
- name: Build documentation
31-
run: uv run --locked --group doc zensical build --strict
31+
run: uv run --no-sync zensical build --strict
3232
- name: Upload Pages artifact
3333
if: ${{ github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master') }}
3434
uses: actions/upload-pages-artifact@v3

.github/workflows/lint-test.yml

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ env:
1616

1717
jobs:
1818
python:
19-
name: Python
19+
name: Python static checks
2020
runs-on: ubuntu-latest
2121
steps:
2222
- uses: actions/checkout@v4
@@ -26,12 +26,32 @@ jobs:
2626
- uses: astral-sh/setup-uv@v4
2727
with:
2828
enable-cache: true
29+
- name: Sync Python tooling
30+
run: uv sync --locked --only-group dev --no-install-project
31+
- name: Generate Python stubs
32+
run: cargo run --bin stub_gen
2933
- name: Ruff
30-
run: uv run --locked ruff check .
34+
run: uv run --no-sync ruff check .
3135
- name: Pyright
32-
run: uv run --locked pyright tests examples
36+
run: uv run --no-sync pyright tests examples
37+
38+
python-tests:
39+
name: Python tests
40+
runs-on: macos-14
41+
steps:
42+
- uses: actions/checkout@v4
43+
- uses: actions/setup-python@v5
44+
with:
45+
python-version: "3.10"
46+
- uses: astral-sh/setup-uv@v4
47+
with:
48+
enable-cache: true
49+
- name: Sync Python tooling
50+
run: uv sync --locked --only-group dev --no-install-project
51+
- name: Build extension
52+
run: uv run --no-sync maturin develop
3353
- name: Python tests
34-
run: uv run --locked python -m unittest discover
54+
run: uv run --no-sync python -m unittest discover
3555

3656
rust:
3757
name: Rust

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ module-name = "v8"
1919

2020
[dependency-groups]
2121
dev = [
22+
"maturin>=1.13,<2.0",
2223
"pyright>=1.1.409",
2324
"ruff>=0.15.12",
2425
]

uv.lock

Lines changed: 26 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)