Skip to content

Commit 57affc0

Browse files
committed
Update test workflow
1 parent 1201e82 commit 57affc0

File tree

1 file changed

+21
-17
lines changed

1 file changed

+21
-17
lines changed

.github/workflows/tests.yml

+21-17
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,39 @@
1-
---
2-
31
name: Tests
42

53
on:
64
push:
7-
branches:
8-
- master
95
pull_request:
10-
branches:
11-
- master
6+
workflow_dispatch:
127

138
jobs:
149
build_doc:
15-
name: 'Build cpython doc'
10+
name: Build CPython documentation
1611
runs-on: ubuntu-latest
1712
steps:
18-
- uses: actions/checkout@v2
19-
- uses: actions/setup-python@v2
13+
- uses: actions/checkout@v3
14+
- uses: actions/setup-python@v4
2015
with:
21-
python-version: 3.8
22-
- name: clone docsbuild scripts
16+
python-version: 3
17+
- name: Clone docsbuild scripts
2318
run: |
2419
git clone https://github.com/python/docsbuild-scripts/
25-
- name: setup requirements
20+
- name: Setup requirements
2621
run: |
2722
python -m pip install --upgrade pip
28-
python -m pip install jinja2 markupsafe zc.lockfile
29-
- name: build docs
30-
run: |
31-
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
32-
- name: 'Upload'
23+
python -m pip install -r docsbuild-scripts/requirements.txt
24+
- name: Build documentation
25+
run: >
26+
python ./docsbuild-scripts/build_docs.py
27+
--quick
28+
--build-root ./build_root
29+
--www-root ./www
30+
--log-directory ./logs
31+
--group $(id -g)
32+
--skip-cache-invalidation
33+
--theme $(pwd)
34+
--language en
35+
--branch 3.11
36+
- name: Upload
3337
uses: actions/upload-artifact@v2.2.2
3438
with:
3539
name: doc-html

0 commit comments

Comments
 (0)