Skip to content

Commit 2fd4a27

Browse files
committed
Add Python 3.10
1 parent 7a7064e commit 2fd4a27

File tree

5 files changed

+40
-12
lines changed

5 files changed

+40
-12
lines changed

.github/workflows/python-310.yml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: python-310
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
schedule:
8+
- cron: "8 * * * *"
9+
10+
jobs:
11+
sync:
12+
runs-on: ubuntu-latest
13+
env:
14+
LOCALE: zh_CN
15+
VERSION: "3.10"
16+
steps:
17+
- uses: actions/checkout@v2
18+
- name: prepare
19+
run: .github/scripts/prepare.sh
20+
- name: update
21+
run: .github/scripts/update.sh
22+
env:
23+
TRANSIFEX_APIKEY: ${{ secrets.TRANSIFEX_APIKEY }}
24+
- name: build
25+
run: .github/scripts/build.sh
26+
- name: commit
27+
run: .github/scripts/commit.sh
28+
env:
29+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/python-37.yml

+2-4
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
branches:
66
- master
77
schedule:
8-
- cron: "38 * * * *"
8+
- cron: "53 * * * *"
99

1010
jobs:
1111
sync:
@@ -14,9 +14,7 @@ jobs:
1414
LOCALE: zh_CN
1515
VERSION: "3.7"
1616
steps:
17-
- uses: actions/checkout@v1
18-
with:
19-
fetch-depth: 1
17+
- uses: actions/checkout@v2
2018
- name: prepare
2119
run: .github/scripts/prepare.sh
2220
- name: update

.github/workflows/python-38.yml

+2-4
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
branches:
66
- master
77
schedule:
8-
- cron: "18 * * * *"
8+
- cron: "38 * * * *"
99

1010
jobs:
1111
sync:
@@ -14,9 +14,7 @@ jobs:
1414
LOCALE: zh_CN
1515
VERSION: "3.8"
1616
steps:
17-
- uses: actions/checkout@v1
18-
with:
19-
fetch-depth: 1
17+
- uses: actions/checkout@v2
2018
- name: prepare
2119
run: .github/scripts/prepare.sh
2220
- name: update

.github/workflows/python-39.yml

+2-4
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
branches:
66
- master
77
schedule:
8-
- cron: "58 * * * *"
8+
- cron: "23 * * * *"
99

1010
jobs:
1111
sync:
@@ -14,9 +14,7 @@ jobs:
1414
LOCALE: zh_CN
1515
VERSION: "3.9"
1616
steps:
17-
- uses: actions/checkout@v1
18-
with:
19-
fetch-depth: 1
17+
- uses: actions/checkout@v2
2018
- name: prepare
2119
run: .github/scripts/prepare.sh
2220
- name: update

README.rst

+5
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ Maintained versions:
1212
* - Version
1313
- Sync status
1414
- Translation progress
15+
* - `3.10 <https://github.com/python/python-docs-zh-cn/tree/3.10>`_
16+
- .. image:: https://github.com/python/python-docs-zh-cn/workflows/python-310/badge.svg
17+
:target: https://github.com/python/python-docs-zh-cn/actions?workflow=python-310
18+
- .. image:: https://img.shields.io/badge/dynamic/json.svg?label=zh_CN&query=%24.zh_CN&url=http://gce.zhsj.me/python/310
19+
:target: https://www.transifex.com/python-doc/python-39/
1520
* - `3.9 <https://github.com/python/python-docs-zh-cn/tree/3.9>`_
1621
- .. image:: https://github.com/python/python-docs-zh-cn/workflows/python-39/badge.svg
1722
:target: https://github.com/python/python-docs-zh-cn/actions?workflow=python-39

0 commit comments

Comments
 (0)