Install with uv #8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Install with uv | |
on: | |
workflow_dispatch: | |
jobs: | |
install: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.11' | |
cache: pip | |
- name: Setup Python (uv) | |
run: | # from https://github.com/astral-sh/uv/issues/1386 | |
curl -LsSf https://astral.sh/uv/install.sh | sh | |
uv venv .venv | |
echo "VIRTUAL_ENV=.venv" >> $GITHUB_ENV | |
echo "$PWD/.venv/bin" >> $GITHUB_PATH | |
mkdir -p $(pip cache dir) | |
- uses: actions/cache@v4 | |
id: cache-uv | |
with: | |
path: ~/.cache/uv | |
key: ${{ runner.os }}-python-3.11-uv | |
- name: Install | |
run: uv pip install -r requirements.txt |