Skip to content

Commit

Permalink
github: workflows: pip use requirements.txt
Browse files Browse the repository at this point in the history
Signed-off-by: Rong Tao <rongtao@cestc.cn>
  • Loading branch information
Rtoax committed Jan 7, 2025
1 parent a1ea9c4 commit f282f91
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
15 changes: 6 additions & 9 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
# Build the ULPatch documentation on github
name: docs
name: DOC
on:
push:
paths:
- 'docs/**'
- 'docs/en/**'
- 'docs/zh/**'
- 'docs/images/**'
- .github/workflows/docs.yml
- .github/workflows/requirements.txt
- mkdocs.yml
branches:
- master
Expand All @@ -16,6 +18,8 @@ on:
- 'docs/en/**'
- 'docs/zh/**'
- 'docs/images/**'
- .github/workflows/docs.yml
- .github/workflows/requirements.txt
- mkdocs.yml

permissions:
Expand All @@ -33,14 +37,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install 'numpy>=1.17.0' \
'pyyaml>=5.3' \
'tqdm' \
'mkdocs>=1.5.2' \
'mkdocs-material>=9.2.6' \
'mkdocstrings[python]>=0.22.0' \
'mkdocs-static-i18n>=1.0.2' \
'mkdocs-include-markdown-plugin>=6.0.1'
pip install -r .github/workflows/requirements.txt
- name: Build site
run: mkdocs build
- name: Deploy to gh-pages
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
numpy>=1.17.0
pyyaml>=5.3
tqdm
mkdocs>=1.5.2
mkdocs-material>=9.2.6
mkdocstrings[python]>=0.22.0
mkdocs-static-i18n>=1.0.2
mkdocs-include-markdown-plugin>=6.0.1

0 comments on commit f282f91

Please sign in to comment.