-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #139 from skim0119/update_ci_sphinx
Update CI: Add sphinx build
- Loading branch information
Showing
5 changed files
with
46 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: CI-sphinx | ||
|
||
# Controls when the workflow will run | ||
on: | ||
# Triggers the workflow on push or pull request events but only for the "main" branch | ||
pull_request: | ||
branches: | ||
- 'main' | ||
- 'update-*' | ||
- 'doc_patch' | ||
push: | ||
branches: [ 'main', 'doc_patch' ] | ||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
# This workflow contains a single job called "build" | ||
build: | ||
# The type of runner that the job will run on | ||
runs-on: ubuntu-latest | ||
|
||
# Steps represent a sequence of tasks that will be executed as part of the job | ||
steps: | ||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up Python | ||
uses: actions/[email protected] | ||
with: | ||
python-version: "3.x" | ||
|
||
- name: Sphinx Build | ||
# You may pin to the exact commit or the version. | ||
# uses: ammaraskar/sphinx-action@8b4f60114d7fd1faeba1a712269168508d4750d2 | ||
uses: ammaraskar/[email protected] | ||
with: | ||
# The folder containing your sphinx docs. | ||
docs-folder: docs/ | ||
# The command used to build your documentation. | ||
build-command: make html SPHINXOPTS+="-W --keep-going" # -n" | ||
# Run before the build command, you can use this to install system level dependencies, for example with "apt-get update -y && apt-get install -y perl" | ||
pre-build-command: | | ||
pwd | ||
python --version | ||
pip install -r requirements.txt | ||
pip install -r docs/requirements.txt |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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