Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Use uv

Joseph T Lyons05b2010db553
diff --git a/.github/workflows/update_weekly_top_ranking_issues.yml b/.github/workflows/update_weekly_top_ranking_issues.yml
index 129c58a6a9a..14c15c530e4 100644
--- a/.github/workflows/update_weekly_top_ranking_issues.yml
+++ b/.github/workflows/update_weekly_top_ranking_issues.yml
@@ -9,10 +9,15 @@ jobs:
if: github.repository_owner == 'zed-industries'
steps:
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4
- - uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5
+ - name: Set up uv
+ uses: astral-sh/setup-uv@v3
with:
- python-version: "3.11"
- architecture: "x64"
- cache: "pip"
- - run: pip install -r script/update_top_ranking_issues/requirements.txt
- - run: python script/update_top_ranking_issues/main.py --github-token ${{ secrets.GITHUB_TOKEN }} --issue-reference-number 6952 --query-day-interval 7
+ version: "latest"
+ enable-cache: true
+ cache-dependency-glob: "script/update_top_ranking_issues/pyproject.toml"
+ - name: Install Python 3.12
+ run: uv python install 3.12
+ - name: Install dependencies
+ run: uv sync --project script/update_top_ranking_issues -p 3.12
+ - name: Run script
+ run: uv run --project script/update_top_ranking_issues script/update_top_ranking_issues/main.py --github-token ${{ secrets.GITHUB_TOKEN }} --issue-reference-number 6952 --query-day-interval 7