diff --git a/.github/workflows/auto_messages_pot.yml b/.github/workflows/auto_messages_pot.yml index 6640e8e..5b8c454 100644 --- a/.github/workflows/auto_messages_pot.yml +++ b/.github/workflows/auto_messages_pot.yml @@ -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 diff --git a/.github/workflows/tests_make_readme.yml b/.github/workflows/tests_make_readme.yml index 12304a8..1ab01d9 100644 --- a/.github/workflows/tests_make_readme.yml +++ b/.github/workflows/tests_make_readme.yml @@ -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