diff --git a/.github/workflows/apps.yml b/.github/workflows/apps.yml index 471e6da05b..3f5826bc44 100644 --- a/.github/workflows/apps.yml +++ b/.github/workflows/apps.yml @@ -25,10 +25,16 @@ jobs: python-version: "3.11" - name: Install dependencies - run: pip install -r auto/scripts/requirements.txt + ## Ref: https://github.com/astral-sh/uv/issues/1386 + run: | + pip install uv + uv venv .venv + echo "VIRTUAL_ENV=.venv" >> $GITHUB_ENV + echo "$PWD/.venv/bin" >> $GITHUB_PATH + uv pip install -r auto/scripts/requirements.txt #- name: Setup Chrome - # uses: browser-actions/setup-chrome@v1.2.0 + # uses: browser-actions/setup-chrome@v1.2.0 - name: Update .py file contents env: @@ -57,10 +63,10 @@ jobs: branch: changelogs create_branch: true skip_checkout: true - file_pattern: 'auto/json/env.json auto/apps/apps-merged.json' - commit_options: '--allow-empty' + file_pattern: "auto/json/env.json auto/apps/apps-merged.json" + commit_options: "--allow-empty" commit_message: 📖 Parsed .env into env.json - push_options: '--force' + push_options: "--force" - name: Parse env.json to .env run: | @@ -74,6 +80,6 @@ jobs: skip_checkout: true file_pattern: . repository: . - commit_options: '--allow-empty' + commit_options: "--allow-empty" commit_message: 📝 Add generated files - push_options: '--force' + push_options: "--force" diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml index 42c8452dbb..2e3813561d 100644 --- a/.github/workflows/update.yml +++ b/.github/workflows/update.yml @@ -19,7 +19,13 @@ jobs: python-version: "3.11" - name: Install python dependencies - run: pip install -r requirements.txt + ## Ref: https://github.com/astral-sh/uv/issues/1386 + run: | + pip install uv + uv venv .venv + echo "VIRTUAL_ENV=.venv" >> $GITHUB_ENV + echo "$PWD/.venv/bin" >> $GITHUB_PATH + uv pip install -r requirements.txt - name: Check for updates env: