]> khamidou — GitHub mirrors - safetensors.git/commitdiff
Fix failing doc build workflows (#287)
authorMishig <dmishig@gmail.com>
Fri, 30 Jun 2023 10:30:41 +0000 (12:30 +0200)
committerGitHub <noreply@github.com>
Fri, 30 Jun 2023 10:30:41 +0000 (12:30 +0200)
* [wip: fix docs]

* wip

* pin tf version for doc-builder

.github/workflows/build_pr_documentation.yml
bindings/python/setup.py

index a7480494e1c896f7f2a327e12efa4a05ce23777e..188005e1fda77b80ca6c68952648d5a1e97f9d62 100644 (file)
@@ -2,9 +2,9 @@ name: Build PR Documentation
 
 on:
   pull_request:
-    paths:
-      - "docs/**"
-      - "bindings/python/py_src/**"
+    # paths:
+    #   - "docs/**"
+    #   - "bindings/python/py_src/**"
 
 concurrency:
   group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
index 0b4d347e8184fcaf24a69ea4a6a4d2df5fb02eef..4c54f70b9c3ef40246bfc5995aa3fc8f1cfc61c7 100644 (file)
@@ -45,10 +45,12 @@ extras["quality"] = deps_list("black", "isort", "flake8", "click")
 extras["testing"] = (
     deps_list("setuptools_rust", "huggingface_hub", "pytest", "pytest-benchmark", "h5py") + extras["numpy"]
 )
+# pinning tf version 2.11.0 for doc-builder
+extras["pinned-tf"] = ["tensorflow==2.11.0"]
 extras["all"] = (
     extras["torch"]
     + extras["numpy"]
-    + extras["tensorflow"]
+    + extras["pinned-tf"]
     + extras["jax"]
     + extras["paddlepaddle"]
     + extras["quality"]