1
0
Fork 0

Update workflows after repo split

This commit is contained in:
Félix Piédallu 2024-09-13 15:45:12 +02:00 committed by Félix Piédallu
parent aacce11e4e
commit c6a492efd5
2 changed files with 10 additions and 12 deletions

View file

@ -14,25 +14,24 @@ jobs:
uses: actions/setup-python@v5 uses: actions/setup-python@v5
with: with:
python-version: 3.11 python-version: 3.11
cache: pip
- name: Install dependencies - name: Install dependencies
run: | run: pip install -r requirements.txt
cd tools/readme_generator/
pip install -r requirements.txt
- name: Save old messges.pot for diffing later - name: Save old messges.pot for diffing later
run: | run: |
cd tools/readme_generator/ cd readme_generator/
cp messages.pot messages.pot.old cp messages.pot messages.pot.old
- name: Try to generate messages.pot - name: Try to generate messages.pot
run: | run: |
cd tools/readme_generator/ cd readme_generator/
pybabel extract --ignore-dirs venv -F babel.cfg -o messages.pot . pybabel extract --ignore-dirs venv -F babel.cfg -o messages.pot .
- name: Check if files changed - name: Check if files changed
run: | run: |
HAS_DIFF=$(python .github/diff_pot_files.py tools/readme_generator/messages.pot.old tools/readme_generator/messages.pot) HAS_DIFF=$(python .github/diff_pot_files.py readme_generator/messages.pot.old readme_generator/messages.pot)
echo "HAS_DIFF=$HAS_DIFF" >> $GITHUB_ENV echo "HAS_DIFF=$HAS_DIFF" >> $GITHUB_ENV
- name: Create Pull Request - name: Create Pull Request

View file

@ -13,10 +13,9 @@ jobs:
with: with:
python-version: '3.9' python-version: '3.9'
cache: 'pip' cache: 'pip'
- name: install dependencies
run: | - name: Install dependencies
python -m pip install --upgrade pip run: pip install -r requirements.txt pytest
pip install -r tools/readme_generator/requirements.txt
pip install pytest
- name: launch pytest - name: launch pytest
run: cd tools/readme_generator && pytest tests run: cd readme_generator && pytest tests