Use uv
This commit is contained in:
parent
d8484c57e1
commit
05b2010db5
1 changed files with 11 additions and 6 deletions
|
@ -9,10 +9,15 @@ jobs:
|
||||||
if: github.repository_owner == 'zed-industries'
|
if: github.repository_owner == 'zed-industries'
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4
|
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4
|
||||||
- uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5
|
- name: Set up uv
|
||||||
|
uses: astral-sh/setup-uv@v3
|
||||||
with:
|
with:
|
||||||
python-version: "3.11"
|
version: "latest"
|
||||||
architecture: "x64"
|
enable-cache: true
|
||||||
cache: "pip"
|
cache-dependency-glob: "script/update_top_ranking_issues/pyproject.toml"
|
||||||
- run: pip install -r script/update_top_ranking_issues/requirements.txt
|
- name: Install Python 3.12
|
||||||
- run: python script/update_top_ranking_issues/main.py --github-token ${{ secrets.GITHUB_TOKEN }} --issue-reference-number 6952 --query-day-interval 7
|
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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue