forked from nilearn/nilearn
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DOC][MAINT] build doc with minimum version of python and dependencies (
nilearn#4650) * test doc on minimum * [full doc] request full build * let tox build the doc * [full doc] request full build * tight layout * escape rich * [full doc] request full build * fix * restore tests * use old layout in exmaples * fix
- Loading branch information
Showing
20 changed files
with
97 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,7 @@ env: | |
BROWSER: /usr/bin/firefox | ||
DISPLAY: :99.0 | ||
NILEARN_DATA: /home/runner/work/nilearn/nilearn/nilearn_data | ||
MIN_PYTHON_VERSION: '3.9' | ||
|
||
jobs: | ||
|
||
|
@@ -35,7 +36,7 @@ jobs: | |
- name: Setup python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.12' | ||
python-version: ${{ env.MIN_PYTHON_VERSION }} | ||
- name: Install packages | ||
run: | | ||
python -m pip install --user --upgrade pip setuptools | ||
|
@@ -93,22 +94,6 @@ jobs: | |
sudo -E apt-get -yq --no-install-suggests --no-install-recommends install \ | ||
dvipng texlive-latex-base texlive-latex-extra | ||
- name: Setup python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.12' | ||
|
||
- name: Install packages | ||
run: | | ||
python -m pip install --user --upgrade pip setuptools | ||
python -m pip install .[plotting,doc] | ||
# Update the authors file and the names file | ||
# in case a contributor has been added to citation.cff | ||
# but did not run the maint_tools/citation_cff_maint.py script. | ||
- name: update AUTHORS.rst and doc/changes/names.rst | ||
run: python maint_tools/citation_cff_maint.py | ||
|
||
- name: Get data from the get_data job | ||
uses: actions/cache@v4 | ||
with: | ||
|
@@ -122,13 +107,24 @@ jobs: | |
- name: Set up display server for virtual browser | ||
run: Xvfb -ac :99 -screen 0 1280x1024x16 > /dev/null 2>&1 & | ||
|
||
- name: Setup python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ env.MIN_PYTHON_VERSION }} | ||
|
||
- name: Install tox | ||
run: python -m pip install pip tox | ||
|
||
- name: Build docs | ||
# We let tox handle creating virtual env and install dependencies. | ||
env: | ||
SSH_AUTH_SOCK: /tmp/ssh_agent.sock | ||
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "GitHub actions" | ||
cd doc | ||
set -o pipefail | ||
export VERSIONTAG=$(git describe --tags --abbrev=0) | ||
make install | ||
tox run \ | ||
--colored yes \ | ||
--list-dependencies \ | ||
-e doc -- install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.