Skip to content

Commit

Permalink
ci: install uv via curl
Browse files Browse the repository at this point in the history
  • Loading branch information
seppzer0 committed Jan 18, 2025
1 parent 676e66b commit cc610f9
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/github-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,18 +30,17 @@ jobs:
with:
submodules: recursive

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

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

0 comments on commit cc610f9

Please sign in to comment.