Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UV for docs building #34

Merged
merged 5 commits into from
Mar 25, 2024
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
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
Loading