Skip to content

Commit 86d0f13

Browse files
author
shijiashuai
committed
chore: update GitHub Pages workflow and docs
1 parent 20ae43d commit 86d0f13

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
pull_request:
88
branches: [main]
99

10+
permissions:
11+
contents: read
12+
1013
concurrency:
1114
group: ${{ github.workflow }}-${{ github.ref }}
1215
cancel-in-progress: true
@@ -30,6 +33,7 @@ jobs:
3033
uses: actions/setup-python@v5
3134
with:
3235
python-version: '3.11'
36+
cache: pip
3337

3438
- name: Check Python formatting
3539
run: |
@@ -97,6 +101,7 @@ jobs:
97101
uses: actions/setup-python@v5
98102
with:
99103
python-version: '3.11'
104+
cache: pip
100105

101106
- name: Install Sphinx
102107
run: |
@@ -129,6 +134,7 @@ jobs:
129134
uses: actions/setup-python@v5
130135
with:
131136
python-version: '3.11'
137+
cache: pip
132138

133139
- name: Run pre-commit
134140
uses: pre-commit/action@v3.0.0

.github/workflows/pages.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ jobs:
3030
runs-on: ubuntu-latest
3131
steps:
3232
- uses: actions/checkout@v4
33+
with:
34+
sparse-checkout: |
35+
docs
36+
src
37+
python
3338
3439
- name: Setup Pages
3540
uses: actions/configure-pages@v5

0 commit comments

Comments
 (0)