|
20 | 20 | apt_dependencies: hunspell hunspell-fr-comprehensive
|
21 | 21 | command: 'pospell -p dict -l fr_FR $CHANGED_PO_FILES'
|
22 | 22 | - name: Longueur des lignes
|
23 |
| - package: powrap |
24 |
| - apt_dependencies: gettext |
25 |
| - command: 'powrap --check --quiet --diff $CHANGED_PO_FILES' |
| 23 | + command: 'awk ''{if (length($0) > 80 && length(gensub(/[^ ]/, "", "g")) > 1) {print FILENAME ":" FNR, "line too long:", $0; ERRORS+=1}} END {if (ERRORS>0) {exit 1}}'' $CHANGED_PO_FILES' |
26 | 24 | - name: Grammaire
|
27 | 25 | package: padpo
|
28 | 26 | command: 'padpo -i $CHANGED_PO_FILES 2>&1 | grep -v -Ff padpo.ignore'
|
|
42 | 40 | python-version: '3.9'
|
43 | 41 | - name: Install ${{ matrix.tool.package }}
|
44 | 42 | run: |
|
45 |
| - [ -n "${{ matrix.tool.apt_dependencies }}" ] && sudo apt-get update && sudo apt-get install -y ${{ matrix.tool.apt_dependencies }} |
46 |
| - python -m pip install --upgrade pip setuptools wheel |
47 |
| - python -m pip install ${{ matrix.tool.package }} |
| 43 | + if [ -n "${{ matrix.tool.apt_dependencies }}" ]; then |
| 44 | + sudo apt-get update && sudo apt-get install -y ${{ matrix.tool.apt_dependencies }} |
| 45 | + fi |
| 46 | + if [ -n "${{ matrix.tool.package }}" ]; then |
| 47 | + python -m pip install --upgrade pip setuptools wheel |
| 48 | + python -m pip install ${{ matrix.tool.package }} |
| 49 | + fi |
48 | 50 | - name: Run ${{ matrix.tool.package }}
|
49 | 51 | env:
|
50 | 52 | ADDED_FILES: ${{ join(fromJSON(steps.changed_files.outputs.added), ' ') }}
|
@@ -83,12 +85,12 @@ jobs:
|
83 | 85 | run: |
|
84 | 86 | mkdir -p ~/locales/fr/LC_MESSAGES/
|
85 | 87 | cp -uv --parents *.po */*.po ~/locales/fr/LC_MESSAGES/
|
86 |
| - git -C ~/cpython checkout 895591c1f0bdec5ad357fe6a5fd0875990061357 |
| 88 | + git -C ~/cpython checkout $(grep ^CPYTHON_CURRENT_COMMIT Makefile| cut -d= -f2) |
87 | 89 | - name: Prepare venv
|
88 | 90 | run: |
|
89 | 91 | # If the venv exists but is broken, drop it (happens on Python upgrades):
|
90 | 92 | # see https://github.com/actions/setup-python/issues/170
|
91 | 93 | [ -d $HOME/cpython/Doc/venv/bin/ -a ! -e $HOME/cpython/Doc/venv/bin/python ] && rm -fr $HOME/cpython/Doc/venv
|
92 | 94 | make -C $HOME/cpython/Doc venv
|
93 | 95 | - name: sphinx-build
|
94 |
| - run: make -C $HOME/cpython/Doc SPHINXOPTS="-qW -j4 -D locale_dirs=$HOME/locales -D language=fr -D gettext_compact=0" autobuild-dev-html |
| 96 | + run: make -C $HOME/cpython/Doc SPHINXOPTS="-q -j4 -D locale_dirs=$HOME/locales -D language=fr -D gettext_compact=0" autobuild-dev-html |
0 commit comments