-
-
Notifications
You must be signed in to change notification settings - Fork 26.2k
CI Move documentation builder to actions #21137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
93 commits
Select commit
Hold shift + click to select a range
3f13773
[DOC] Move documentation builder to actions.
alfaro96 7d0deb2
[FIX] Fix path to documentation builder script.
alfaro96 cade5f7
[FIX] Fix pip install sentence.
alfaro96 f7f288b
[FIX] Fix dependency versions.
alfaro96 9057564
[FIX] Fix action syntax.
alfaro96 e5887b0
[CI] Add push step.
alfaro96 1899ea9
[FIX] Add new step.
alfaro96 1c0546c
[FIX] Fix path to shell script.
alfaro96 a79cd1e
[FIX] Fix commit SHA.
alfaro96 0279c08
[FIX] Fix repository to fetch.
alfaro96 21fbec0
[FIX] Fix ref to fetch.
alfaro96 6e21020
[DBG] Debugging paths.
alfaro96 690fee6
[DBG] Debugging paths.
alfaro96 977bbeb
[DBG] Debugging paths.
alfaro96 8fb6600
[FIX] Fix path.
alfaro96 9d39ea4
[FIX] Fix action.
alfaro96 f5c6c63
[FIX] Fix paths.
alfaro96 5efa805
[FIX] Fix paths.
alfaro96 aa84276
[FIX] Fix condition.
alfaro96 1cb3944
[DBG] Debugging paths.
alfaro96 919788c
[DBG] Debugging paths.
alfaro96 16e5204
[DBG] Debugging.
alfaro96 739e22d
[DBG] Debugging.
alfaro96 c211283
[DBG] Debugging.
alfaro96 dee2848
Merge branch 'main' into move_doc_builder
alfaro96 6c1d5b4
[CI] Monkey-patch build_doc.sh to work with both documentation builders
alfaro96 905b9e0
[FIX] Fix syntax
alfaro96 015af42
[FIX] Fix syntax
alfaro96 a006f95
[FIX] Fix syntax
alfaro96 4bd04ab
[FIX] Fix syntax
alfaro96 65e01be
[FIX] Checkout correct commit
alfaro96 b240998
[FIX] Checkout correct commit
alfaro96 20e56b2
[FIX] Checkout correct commit
alfaro96 919e611
[CLN] Remove pull request trigger
alfaro96 4615685
[FEA] Add doc-min-dependencies job
alfaro96 5463071
[CLN] Remove pull request trigger
alfaro96 16d57ed
[FEA] First attempt to trigger using actions
alfaro96 466d00b
[FIX] Fix syntax and variables
alfaro96 990c304
[FIX] Fix syntax and variables
alfaro96 a854c3d
[FIX] Fix syntax and variables
alfaro96 d3c4bf6
[FIX] Fix syntax and variables
alfaro96 97d5370
[FIX] Fix syntax and variables
alfaro96 15d9746
Just for testing
alfaro96 dd7308e
Trigger build
alfaro96 07533ba
Trigger build
alfaro96 c08e4ef
More testing
alfaro96 65f0644
More testing
alfaro96 fe0a46e
More testing
alfaro96 2e59ae9
[FIX] Fix parameter name
alfaro96 5825d19
Trigger build
alfaro96 1ee28de
Trigger build
alfaro96 d45506b
[FIX] Fix run in push-docs
alfaro96 211f69f
Trigger build
alfaro96 7dd50c8
[FIX] Fix run in push-docs
alfaro96 a301800
Trigger build
alfaro96 e40b547
Trigger build
alfaro96 14076f5
Trigger build
alfaro96 8b70d03
[FIX] Fix environment variables
alfaro96 dce3df6
Trigger build
alfaro96 380676a
[FIX] Fix download script
alfaro96 101b3c3
[FIX] Fix run step
alfaro96 b0974a4
Trigger build
alfaro96 5d1e91f
[FIX] Fix environment variables
alfaro96 fe8b587
Trigger build
alfaro96 fca68a0
[FIX] Fix path to built documentation
alfaro96 69f0a42
Trigger build
alfaro96 b933f72
[FIX] Create path before extracting
alfaro96 7099f23
[MNT] Tryo to trigger to the proper branch
alfaro96 d0ccf90
Trigger build
alfaro96 fed17c9
[FIX] Fix yaml
alfaro96 686e461
[FIX] Fix yaml
alfaro96 37f2cf1
Trigger build
alfaro96 167a950
[MNT] Set execution permissions
alfaro96 7c940a2
Trigger build
alfaro96 70a6ae9
[FIX] Remove whitespaces
alfaro96 b391bfa
[FIX] Fix trailing quotes
alfaro96 0f1d39a
[Fix] Fix run step in jobs
alfaro96 913a071
[Fix] Fix permissions
alfaro96 b016b07
[MNT] Replace merge by head
alfaro96 697f32f
[DBG] Debug github event object
alfaro96 5dc9779
Trigger build [doc quick]
alfaro96 a4fbbe0
[DBG] Debug github event object
alfaro96 a735c83
Trigger build [doc quick]
alfaro96 7e725b6
Trigger build [doc quick]
alfaro96 63cf943
[MNT] Simplify trigger hosting
alfaro96 94457f6
Trigger build [doc quick]
alfaro96 1dd57c3
[FIX] Fix double execution of jobs
alfaro96 5e5699e
Trigger build [doc quick]
alfaro96 a166f97
[FIX] Fix merge conflicts and apply suggested changes
alfaro96 13fe978
[MNT] Remove unnecesary environment variables
alfaro96 f8a0fa1
Trigger build [doc quick]
alfaro96 0929e74
[MNT] Use CIRCLE_CI_TOKEN for the environment variable
alfaro96 6853582
Merge branch 'main' into move_doc_builder
thomasjpfan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 |
---|---|---|
@@ -0,0 +1,66 @@ | ||
# Workflow to build the documentation | ||
name: Documentation builder | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
# Release branches | ||
- "[0-9]+.[0-9]+.X" | ||
pull_request: | ||
branches: | ||
- main | ||
- "[0-9]+.[0-9]+.X" | ||
|
||
jobs: | ||
# Build the documentation against the minimum version of the dependencies | ||
doc-min-dependencies: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout scikit-learn | ||
uses: actions/checkout@v2 | ||
with: | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
|
||
- name: Setup Python | ||
uses: actions/setup-python@v2 | ||
|
||
- name: Build documentation | ||
run: bash build_tools/github/build_doc.sh | ||
env: | ||
OMP_NUM_THREADS: 2 | ||
MKL_NUM_THREADS: 2 | ||
CONDA_ENV_NAME: testenv | ||
LOCK_FILE: build_tools/github/doc_min_dependencies_linux-64_conda.lock | ||
|
||
- name: Upload documentation | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: doc-min-dependencies | ||
path: doc/_build/html/stable | ||
|
||
# Build the documentation against the latest version of the dependencies | ||
doc: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout scikit-learn | ||
uses: actions/checkout@v2 | ||
with: | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
|
||
- name: Setup Python | ||
uses: actions/setup-python@v2 | ||
|
||
- name: Build documentation | ||
run: bash build_tools/github/build_doc.sh | ||
env: | ||
OMP_NUM_THREADS: 2 | ||
MKL_NUM_THREADS: 2 | ||
CONDA_ENV_NAME: testenv | ||
LOCK_FILE: build_tools/github/doc_linux-64_conda.lock | ||
|
||
- name: Upload documentation | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: doc | ||
path: doc/_build/html/stable |
This file contains hidden or 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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Workflow to trigger the jobs that will host the documentation | ||
name: Documentation push trigger | ||
on: | ||
workflow_run: | ||
# Run the workflow after the separate "Documentation builder" workflow completes | ||
workflows: [Documentation builder] | ||
types: | ||
- completed | ||
|
||
jobs: | ||
push: | ||
runs-on: ubuntu-latest | ||
# Run the job only if the "Documentation builder" workflow succeeded | ||
if: ${{ github.event.workflow_run.conclusion == 'success' }} | ||
steps: | ||
- name: Checkout scikit-learn | ||
uses: actions/checkout@v2 | ||
|
||
- name: Trigger hosting jobs | ||
run: bash build_tools/github/trigger_hosting.sh | ||
env: | ||
CIRCLE_CI_TOKEN: ${{ secrets.CIRCLE_CI_TOKEN }} | ||
EVENT: ${{ github.event.workflow_run.event }} | ||
RUN_ID: ${{ github.event.workflow_run.id }} | ||
HEAD_BRANCH: ${{ github.event.workflow_run.head_branch }} | ||
PULL_REQUEST_NUMBER: ${{ github.event.workflow_run.pull_requests[0].number }} |
This file contains hidden or 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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
set -x | ||
|
||
wget $GITHUB_ARTIFACT_URL | ||
mkdir -p doc/_build/html/stable | ||
unzip doc*.zip -d doc/_build/html/stable |
This file contains hidden or 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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains hidden or 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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
set -x | ||
|
||
GITHUB_RUN_URL=https://nightly.link/$GITHUB_REPOSITORY/actions/runs/$RUN_ID | ||
|
||
if [ "$EVENT" == pull_request ] | ||
then | ||
BRANCH=pull/$PULL_REQUEST_NUMBER/head | ||
else | ||
BRANCH=$HEAD_BRANCH | ||
fi | ||
|
||
curl --request POST \ | ||
--url https://circleci.com/api/v2/project/gh/$GITHUB_REPOSITORY/pipeline \ | ||
--header "Circle-Token: $CIRCLE_CI_TOKEN" \ | ||
--header "content-type: application/json" \ | ||
--header "x-attribution-actor-id: github_actions" \ | ||
--header "x-attribution-login: github_actions" \ | ||
--data \{\"branch\":\"$BRANCH\",\"parameters\":\{\"GITHUB_RUN_URL\":\"$GITHUB_RUN_URL\"\}\} | ||
alfaro96 marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.