Skip to content

Commit ec27c65

Browse files
CI: Save a requirements file for rerunning locally (#629)
* CI: Save the environment.txt file for rerunning locally * CI: More verbose "missing external doc" error * DOC: Prevent broken scikitlearn doc link (see scikit-learn/scikit-learn#31804)
1 parent 1e5fb9e commit ec27c65

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

.github/workflows/main.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,13 @@ jobs:
8383
run: |
8484
pip install --upgrade pip
8585
pip install .[dev,miosr,cvxpy,sbr]
86+
pip freeze > environment.txt
87+
- name: Save the environment
88+
uses: actions/upload-artifact@v4
89+
with:
90+
name: requirements ${{matrix.python-version}}
91+
path: environment.txt
92+
retention-days: 5
8693
- name: Test with pytest
8794
run: |
8895
coverage run --source=pysindy -m pytest test -m "not slow" && coverage xml

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ def fetch_notebook_list(base: str) -> list[tuple[str, str]]:
229229
"""
230230
index = requests.get(base + "index.rst")
231231
if index.status_code != 200:
232-
raise RuntimeError("Unable to locate external example directory")
232+
raise RuntimeError(f"Unable to locate external example directory for {base}")
233233
text = str(index.content, encoding="utf-8")
234234
link_line = r"^\s+(.*)[^\S\r\n]+(\S+.ipynb)"
235235
T = TypeVar("T")

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ classifiers = [
2626
]
2727
readme = "README.rst"
2828
dependencies = [
29-
"scikit-learn>=1.1, !=1.5.0, !=1.6.0",
29+
"scikit-learn>=1.1, !=1.5.0, !=1.6.0, !=1.7.1",
3030
"numpy>=2.0",
3131
"derivative>=0.6.2",
3232
"scipy",

0 commit comments

Comments
 (0)