Skip to content

Commit d404dfa

Browse files
authored
Add GitHub Actions
2 parents dc47a0b + 5557957 commit d404dfa

File tree

7 files changed

+107
-1
lines changed

7 files changed

+107
-1
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
### Bug Description
2+
Please provide a detailed description of the issue you encountered.
3+
4+
### Steps to Reproduce
5+
1. Step 1
6+
2. Step 2
7+
3. ...
8+
9+
### Expected Behavior
10+
Describe what you expected to happen.
11+
12+
### Actual Behavior
13+
Describe what actually happened.
14+
15+
### Environment Information
16+
- Operating System: [e.g., Ubuntu 20.04]
17+
- Python Version: [e.g., 3.10.12]
18+
- Installation Method: [e.g., pypi, source]
19+
- Trinity-RFT Version: [e.g., 0.1.0]
20+
- Other relevant dependencies or configurations
21+
22+
### Log Information
23+
If applicable, include any relevant log output here.

.github/ISSUE_TEMPLATE/custom.md

Whitespace-only changes.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
### Feature Request
2+
Please provide a detailed description of the feature you would like to see added.
3+
4+
### Purpose of the Feature
5+
Explain the purpose of the feature and how it will help the project or users.
6+
7+
### Expected Implementation (Optional)
8+
If you have specific ideas, please describe how you expect this feature to be implemented.
9+
10+
### Additional Information
11+
Provide any other information that might be helpful for us to understand this feature request.

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
## Description
2+
3+
[Please describe the background, purpose, changes made, and how to test this PR]
4+
5+
6+
## Checklist
7+
8+
Please check the following items before code is ready to be reviewed.
9+
10+
- [ ] Code has passed all tests
11+
- [ ] Docstrings have been added/updated in Google Style
12+
- [ ] Documentation has been updated
13+
- [ ] Code is ready for review

.github/workflows/pre-commit.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: pre-commit
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
pre-commit:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v4
10+
- uses: actions/setup-python@v4
11+
with:
12+
python-version: '3.10'
13+
- uses: pre-commit/[email protected]

.github/workflows/sphinx-doc.yaml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Deploy Sphinx Doc to Pages
2+
3+
on:
4+
pull_request:
5+
types: [opened, synchronize]
6+
paths:
7+
- 'docs/sphinx_doc/**/*'
8+
push:
9+
branches:
10+
- main
11+
12+
jobs:
13+
pages:
14+
timeout-minutes: 20
15+
runs-on: ${{ matrix.os }}
16+
strategy:
17+
matrix:
18+
os: [ubuntu-latest]
19+
python-version: ['3.10']
20+
env:
21+
OS: ${{ matrix.os }}
22+
PYTHON: '3.10'
23+
steps:
24+
- uses: actions/checkout@master
25+
- name: Setup Python ${{ matrix.python-version }}
26+
uses: actions/setup-python@master
27+
with:
28+
python-version: ${{ matrix.python-version }}
29+
- name: Install Dependencies
30+
run: |
31+
pip install -q -e .[doc]
32+
- id: build
33+
name: Build Documentation
34+
run: |
35+
cd docs/sphinx_doc
36+
./build_doc.sh
37+
- name: Upload Documentation
38+
uses: actions/upload-artifact@v4
39+
with:
40+
name: SphinxDoc
41+
path: 'docs/sphinx_doc/build'
42+
- uses: peaceiris/actions-gh-pages@v3
43+
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
44+
with:
45+
github_token: ${{ secrets.GITHUB_TOKEN }}
46+
publish_dir: 'docs/sphinx_doc/build/html'

docs/sphinx_doc/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
4949

5050
html_theme_options = {
51-
"navigation_depth": 2,
51+
"navigation_depth": 3,
5252
}
5353

5454
# Add any paths that contain custom static files (such as style sheets) here,

0 commit comments

Comments
 (0)