Skip to content

Commit cc610f9

Browse files
committed
ci: install uv via curl
1 parent 676e66b commit cc610f9

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.github/workflows/github-ci.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,18 +30,17 @@ jobs:
3030
with:
3131
submodules: recursive
3232

33-
- name: Setup Python
34-
uses: actions/setup-python@v4
35-
with:
36-
python-version: "3.12"
33+
- name: Install uv
34+
run: |
35+
uv_version=$(cat ./requirement-uv.txt | awk -F'==' '{print $2}' | tr -d ' \n')
36+
curl -LsSf https://astral.sh/uv/${uv_version}/install.sh | sh
3737
3838
- name: Record original PATH
3939
id: record_original_path
4040
run: echo "PATH_ORIGINAL=$PATH" >> $GITHUB_OUTPUT
4141

4242
- name: Activate .venv
4343
run: |
44-
python3 -m pip install -r requirement-uv.txt
4544
uv sync --frozen --no-install-project
4645
. .venv/bin/activate
4746
echo PATH=${GITHUB_WORKSPACE}/.venv/bin:$PATH >> $GITHUB_ENV

0 commit comments

Comments
 (0)