Skip to content

Commit d98fe11

Browse files
committed
refactor circleci to use spin [skip actions][skip azp][skip cirrus]
1 parent eb6ac83 commit d98fe11

File tree

2 files changed

+11
-14
lines changed

2 files changed

+11
-14
lines changed

.circleci/config.yml

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -54,27 +54,20 @@ jobs:
5454
command: |
5555
python3.11 -m venv venv
5656
. venv/bin/activate
57-
pip install --progress-bar=off -r requirements/test_requirements.txt
57+
pip install --progress-bar=off -r requirements/test_requirements.txt \
58+
-r requirements/build_requirements.txt \
59+
-r requirements/ci_requirements.txt
5860
# get newer, pre-release versions of critical packages
5961
pip install --progress-bar=off --pre --extra-index-url https://pypi.anaconda.org/scientific-python-nightly-wheels/simple -r requirements/doc_requirements.txt
6062
# then install numpy HEAD, which will override the version installed above
61-
pip install . --config-settings=setup-args="-Dallow-noblas=true"
62-
63-
- run:
64-
name: create release notes
65-
command: |
66-
. venv/bin/activate
67-
VERSION=$(pip show numpy | grep Version: | cut -d ' ' -f 2 | cut -c 1-5)
68-
towncrier build --version $VERSION --yes
69-
./tools/ci/test_all_newsfragments_used.py
63+
spin build --scipy-openblas=64
7064
7165
- run:
7266
name: build devdocs w/ref warnings
7367
command: |
7468
. venv/bin/activate
75-
cd doc
7669
# Don't use -q, show warning summary"
77-
SPHINXOPTS="-W -n" make -e html
70+
SPHINXOPTS="-W -n" spin docs
7871
if [[ $(find build/html -type f | wc -l) -lt 1000 ]]; then
7972
echo "doc build failed: build/html is empty"
8073
exit -1
@@ -95,10 +88,11 @@ jobs:
9588
# destination: neps
9689

9790
- run:
98-
name: run refguide-check
91+
name: check doctests
9992
command: |
10093
. venv/bin/activate
101-
python tools/refguide_check.py -v
94+
spin check-docs -v
95+
spin check-tutorials -v
10296
10397
- persist_to_workspace:
10498
root: ~/repo

requirements/doc_requirements.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,6 @@ pickleshare
1616
# needed to build release notes
1717
towncrier
1818
toml
19+
20+
# for doctests, also needs pytz which is in test_requirements
21+
scipy-doctest

0 commit comments

Comments
 (0)