Skip to content

Commit

Permalink
Actually skip requirements install in docs job
Browse files Browse the repository at this point in the history
  • Loading branch information
lkubb committed Oct 17, 2024
1 parent d1c94c2 commit 6cad682
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/docs-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- name: Build Docs
env:
SKIP_REQUIREMENTS_INSTALL: true
SKIP_REQUIREMENTS_INSTALL: '1'
run: |
nox --force-color -e docs
Expand Down
8 changes: 8 additions & 0 deletions noxfile.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import os
import shutil
from importlib import metadata
from pathlib import Path

import nox
Expand All @@ -8,6 +9,13 @@
SKIP_REQUIREMENTS_INSTALL = os.environ.get("SKIP_REQUIREMENTS_INSTALL", "0") == "1"


nox.options.reuse_existing_virtualenvs = True

# Speed up all sessions by using uv if possible
if tuple(map(int, metadata.version("nox").split("."))) >= (2024, 3):
nox.options.default_venv_backend = "uv|virtualenv"


def _install(session, *args):
if SKIP_REQUIREMENTS_INSTALL:
return
Expand Down

0 comments on commit 6cad682

Please sign in to comment.