Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c4ac4df

Browse files
authored
Try gh-actions. (#1474)
1 parent 0849bf1 commit c4ac4df

File tree

2 files changed

+83
-2
lines changed

2 files changed

+83
-2
lines changed

.github/workflows/tests.yml

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
---
2+
3+
name: Tests
4+
5+
on:
6+
push:
7+
branches:
8+
- '*.*'
9+
pull_request:
10+
branches:
11+
- '*.*'
12+
13+
jobs:
14+
pospell:
15+
name: 'Orthographe'
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v2
19+
- name: Install pospell
20+
run: |
21+
sudo apt-get update
22+
sudo apt-get install -y hunspell hunspell-fr-comprehensive
23+
sudo python3 -m pip install pospell
24+
- name: Run pospell
25+
run: pospell -p dict -l fr_FR *.po */*.po
26+
27+
powrap:
28+
name: 'Ensure wrapping consistency'
29+
runs-on: ubuntu-latest
30+
steps:
31+
- uses: actions/checkout@v2
32+
- name: Install powrap
33+
run: |
34+
sudo apt-get update
35+
sudo apt-get install gettext
36+
sudo python3 -m pip install powrap
37+
- name: Run powrap
38+
run: powrap --check --quiet *.po */*.po
39+
40+
padpo:
41+
name: 'Grammaire'
42+
runs-on: ubuntu-latest
43+
steps:
44+
- uses: actions/checkout@v2
45+
- uses: actions/setup-python@v2
46+
with:
47+
python-version: '3.9'
48+
- name: Install padpo
49+
run: |
50+
python3.9 -m venv .venv
51+
.venv/bin/python -m pip install --upgrade pip setuptools wheel
52+
.venv/bin/python -m pip install padpo
53+
- name: Run padpo
54+
run: PATH=$PATH:$PWD/.venv/bin/ padpo -i *.po */*.po 2>&1 | grep -v -Ff padpo.ignore
55+
56+
sphinx:
57+
name: 'Build the doc'
58+
runs-on: ubuntu-latest
59+
steps:
60+
- uses: actions/checkout@v2
61+
- uses: actions/cache@v2
62+
with:
63+
path: '~/cpython/'
64+
key: '1'
65+
- uses: actions/setup-python@v2
66+
with:
67+
python-version: '3.9'
68+
- name: Clone cpython
69+
run: |
70+
if [ ! -d ~/cpython ]; then
71+
git clone https://github.com/python/cpython ~/cpython/
72+
else
73+
git -C ~/cpython fetch
74+
fi
75+
- name: Prepare build hierarchy
76+
run: |
77+
mkdir -p ~/locales/fr/LC_MESSAGES/
78+
cp -uv --parents *.po */*.po ~/locales/fr/LC_MESSAGES/
79+
git -C ~/cpython checkout b30934e9afb0af3f8e2e5f0992445be775b3c630
80+
- name: Prepare venv
81+
run: make -C $HOME/cpython/Doc venv
82+
- name: sphinx-build
83+
run: make -C $HOME/cpython/Doc SPHINXOPTS="-qW -j4 -D locale_dirs=$HOME/locales -D language=fr -D gettext_compact=0" autobuild-dev-html

Makefile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ BRANCH := 3.9
3030

3131
EXCLUDED := whatsnew/ c-api/
3232

33-
.SILENT:
34-
3533
# Internal variables
3634

3735
UPSTREAM := https://github.com/python/cpython

0 commit comments

Comments
 (0)