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

Skip to content

Github checks only changed files #1500

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
70 changes: 35 additions & 35 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,49 +11,49 @@ on:
- '*.*'

jobs:
pospell:
name: 'Orthographe (pospell)'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Register pospell problem matcher
run: echo "::add-matcher::.github/problem-matchers/pospell.json"
- name: Install pospell
run: |
sudo apt-get update
sudo apt-get install -y hunspell hunspell-fr-comprehensive
sudo python3 -m pip install pospell
- name: Run pospell
run: pospell -p dict -l fr_FR *.po */*.po
checks:
strategy:
matrix:
tool:
- name: Orthographe
package: pospell
apt_dependencies: hunspell hunspell-fr-comprehensive
command: pospell -p dict -l fr_FR
- name: Longueur des lignes
package: powrap
apt_dependencies: gettext
command: powrap --check --quiet --diff
- name: Grammaire
package: padpo
command: 'padpo -i 2>&1'
command_suffix: '| grep -v -Ff padpo.ignore'

powrap:
name: 'Longueur des lignes (powrap)'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install powrap
run: |
sudo apt-get update
sudo apt-get install gettext
sudo python3 -m pip install powrap
- name: Run powrap
run: powrap --check --quiet *.po */*.po

padpo:
name: 'Grammaire (padpo)'
name: ${{ matrix.tool.name }} (${{ matrix.tool.package }})
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Register problem matchers
run: echo "::add-matcher::.github/problem-matchers/pospell.json"
- uses: lots0logs/[email protected]
id: changed_files
with:
token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: Install padpo
- name: Install ${{ matrix.tool.package }}
run: |
[ -n "${{ matrix.tool.apt_dependencies }}" ] && sudo apt-get update && sudo apt-get install -y ${{ matrix.tool.apt_dependencies }}
python -m pip install --upgrade pip setuptools wheel
python -m pip install ${{ matrix.tool.package }}
- name: Run ${{ matrix.tool.package }}
env:
ADDED_FILES: ${{ join(fromJSON(steps.changed_files.outputs.added), ' ') }}
MODIFIED_FILES: ${{ join(fromJSON(steps.changed_files.outputs.modified), ' ') }}
run: |
python3.9 -m venv .venv
.venv/bin/python -m pip install --upgrade pip setuptools wheel
.venv/bin/python -m pip install padpo
- name: Run padpo
run: PATH=$PATH:$PWD/.venv/bin/ padpo -i *.po */*.po 2>&1 | grep -v -Ff padpo.ignore
CHANGED_PO_FILES=$(printf "%s %s\n" "$ADDED_FILES" "$MODIFIED_FILES" | tr ' ' '\n' | grep '.po$')
echo "Running on:" $CHANGED_PO_FILES
[ -n "$CHANGED_PO_FILES" ] && ${{ matrix.tool.command }} $CHANGED_PO_FILES ${{ matrix.tool.command_suffix }}

sphinx:
name: 'Génération de la doc (sphinx)'
Expand Down
4 changes: 2 additions & 2 deletions library/aifc.po
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ msgstr ""
"Project-Id-Version: Python 3\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-10-01 16:00+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"PO-Revision-Date: 2020-12-11 15:56+0100\n"
"Last-Translator: Julien Palard <[email protected]>\n"
"Language-Team: FRENCH <[email protected]>\n"
"Language: fr\n"
"MIME-Version: 1.0\n"
Expand Down
4 changes: 2 additions & 2 deletions library/allos.po
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ msgstr ""
"Project-Id-Version: Python 3\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-08-24 09:01+0200\n"
"PO-Revision-Date: 2018-07-27 22:58+0200\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"PO-Revision-Date: 2020-12-11 15:56+0100\n"
"Last-Translator: Julien Palard <[email protected]>\n"
"Language-Team: FRENCH <[email protected]>\n"
"Language: fr\n"
"MIME-Version: 1.0\n"
Expand Down
4 changes: 2 additions & 2 deletions library/zoneinfo.po
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ msgstr ""
"Project-Id-Version: Python 3\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-08-24 09:01+0200\n"
"PO-Revision-Date: 2020-07-20 15:07+0200\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"PO-Revision-Date: 2020-12-11 15:55+0100\n"
"Last-Translator: Julien Palard <[email protected]>\n"
"Language-Team: FRENCH <[email protected]>\n"
"Language: fr\n"
"MIME-Version: 1.0\n"
Expand Down