From c6a492efd53887ad0ae73e38ab136ba760a57d6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Fri, 13 Sep 2024 15:45:12 +0200 Subject: [PATCH] Update workflows after repo split --- .github/workflows/auto_messages_pot.yml | 11 +++++------ .github/workflows/tests_make_readme.yml | 11 +++++------ 2 files changed, 10 insertions(+), 12 deletions(-) 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