Skip to content

Commit

Permalink
use uv in circleci
Browse files Browse the repository at this point in the history
  • Loading branch information
bmos committed Sep 6, 2024
1 parent fe07c0b commit 62f43db
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,18 @@ jobs:
# Note that we the circleci node image installs stuff with a user "circleci", rather
# than root. So we need to tell npm where to install stuff.
command: |
python3 -m venv venv
. venv/bin/activate
pip install -r ./docs/requirements.txt
pip install uv
uv venv
source .venv/bin/activate
uv pip install -r ./docs/requirements.txt
- save_cache:
paths:
- ./venv
key: v2-dependencies-python3.12-{{ checksum "./docs/requirements.txt" }}
- run:
name: Build docs
command: |
. venv/bin/activate
source .venv/bin/activate
cd docs/
make deploy_docs
cd ..
Expand All @@ -67,9 +68,10 @@ jobs:
command: |
npm set prefix=/home/circleci/npm
npm install -g --silent [email protected]
python3 -m venv venv
. venv/bin/activate
pip install -r ./docs/requirements.txt
pip install uv
uv venv
source .venv/bin/activate
uv pip install -r ./docs/requirements.txt
- save_cache:
paths:
- ./venv
Expand All @@ -85,7 +87,7 @@ jobs:
# (This file tell Github Pages that we want to include all files in docs/, including those
# that start with an underscore like _static/).
command: |
. venv/bin/activate
source .venv/bin/activate
cd docs/
make deploy_docs
cd ..
Expand Down

0 comments on commit 62f43db

Please sign in to comment.