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
with:
python-version: 3.11
cache: pip
- name: Install dependencies
run: |
cd tools/readme_generator/
pip install -r requirements.txt
run: pip install -r requirements.txt
- name: Save old messges.pot for diffing later
run: |
cd tools/readme_generator/
cd readme_generator/
cp messages.pot messages.pot.old
- name: Try to generate messages.pot
run: |
cd tools/readme_generator/
cd readme_generator/
pybabel extract --ignore-dirs venv -F babel.cfg -o messages.pot .
- name: Check if files changed
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
- name: Create Pull Request

View file

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