Skip to content

Commit

Permalink
Fix build for new uv version
Browse files Browse the repository at this point in the history
In the new version of uv, they dropped support for the VIRTUAL_ENV environment variable.
  • Loading branch information
dhirving committed May 24, 2024
1 parent a720a1e commit e8eba41
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/build_docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,25 +25,21 @@ jobs:
- name: Install sqlite
run: sudo apt-get install sqlite libyaml-dev

- name: Set the VIRTUAL_ENV variable for uv to work
run: |
echo "VIRTUAL_ENV=${Python_ROOT_DIR}" >> $GITHUB_ENV
- name: Update pip/wheel infrastructure
run: |
python -m pip install --upgrade pip
pip install uv
uv pip install wheel
uv pip install --system wheel
- name: Install dependencies
run: |
uv pip install -r requirements.txt
uv pip install --system -r requirements.txt
- name: Build and install
run: uv pip install --no-deps -v -e .
run: uv pip install --system --no-deps -v -e .

- name: Install documenteer
run: uv pip install 'documenteer[pipelines]==0.8.2'
run: uv pip install --system 'documenteer[pipelines]==0.8.2'

- name: Build documentation
env:
Expand Down

0 comments on commit e8eba41

Please sign in to comment.