From 05b2010db553ca6651e273110afdfa4e32643cbd Mon Sep 17 00:00:00 2001 From: Joseph T Lyons Date: Wed, 9 Oct 2024 23:02:41 -0400 Subject: [PATCH] Use uv --- .../update_weekly_top_ranking_issues.yml | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/.github/workflows/update_weekly_top_ranking_issues.yml b/.github/workflows/update_weekly_top_ranking_issues.yml index 129c58a6a9..14c15c530e 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