Update workflows after repo split
This commit is contained in:
parent
aacce11e4e
commit
c6a492efd5
2 changed files with 10 additions and 12 deletions
11
.github/workflows/auto_messages_pot.yml
vendored
11
.github/workflows/auto_messages_pot.yml
vendored
|
@ -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
|
||||
|
|
11
.github/workflows/tests_make_readme.yml
vendored
11
.github/workflows/tests_make_readme.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue