Skip to content

Commit

Permalink
UV for docs building (#34)
Browse files Browse the repository at this point in the history
Signed-off-by: zethson <[email protected]>
  • Loading branch information
Zethson authored Mar 25, 2024
1 parent fc9e091 commit 1014b3c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,17 @@ jobs:

steps:
- name: Checkout main
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Checkout lndocs
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: laminlabs/lndocs
ssh-key: ${{ secrets.READ_LNDOCS }}
path: lndocs
ref: main
- uses: actions/setup-python@v3
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Cache pre-commit
Expand Down
2 changes: 1 addition & 1 deletion laminci/nox.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def run_pytest(session: Session, coverage: bool = True, env: Optional[Dict] = No
def build_docs(session: Session, strict: bool = False, strip_prefix: bool = False):
prefix = "." if Path("./lndocs").exists() else ".."
if nox.options.default_venv_backend == "none":
session.run(*f"pip install {prefix}/lndocs".split())
session.run(*f"uv pip install --system {prefix}/lndocs".split())
else:
session.install(f"{prefix}/lndocs")
# do not simply add instance creation here
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ dynamic = ["version", "description"]
dependencies = [
# this CANNOT depend on lamindb as long as we use it
# as an upstream dependency within lndb!
"uv",
"nox",
"lamin_utils",
"pyyaml",
Expand Down

0 comments on commit 1014b3c

Please sign in to comment.