Skip to content

Commit

Permalink
build: Use uv instead of pip for scripts
Browse files Browse the repository at this point in the history
build: Use `uv` instead of pip for `Update Checker` workflow

build: Use `uv` instead of pip for `Patch Apps Info` workflow
  • Loading branch information
IMXEren committed Aug 15, 2024
1 parent 82d7e8d commit 46e1e9b
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 8 deletions.
20 changes: 13 additions & 7 deletions .github/workflows/apps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
# uses: browser-actions/[email protected]

- name: Update .py file contents
env:
Expand Down Expand Up @@ -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: |
Expand All @@ -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"
8 changes: 7 additions & 1 deletion .github/workflows/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 46e1e9b

Please sign in to comment.