Skip to content

Commit 6d56e32

Browse files
authored
Test Github action to validate the theme against docsbuild scripts. (#69)
1 parent 0f18f09 commit 6d56e32

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/tests.yml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
11+
jobs:
12+
build_doc:
13+
name: 'Build cpython doc'
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v2
17+
- uses: actions/setup-python@v2
18+
with:
19+
python-version: 3.7
20+
- name: clone docsbuild scripts
21+
run: |
22+
git clone https://github.com/python/docsbuild-scripts/
23+
- name: setup requirements
24+
run: |
25+
python -m pip install --upgrade pip
26+
python -m pip install jinja2 markupsafe
27+
- name: build docs
28+
run: |
29+
python3 ./docsbuild-scripts/build_docs.py --quick --build-root ./build_root --www-root ./www --log-directory ./logs --group $(id -g) --skip-cache-invalidation --theme $(pwd) --language en --branch 3.9
30+
- name: 'Upload'
31+
uses: actions/[email protected]
32+
with:
33+
name: doc-html
34+
path: www/

0 commit comments

Comments
 (0)