Skip to content

Commit c637c29

Browse files
simplify the uv
1 parent 2de5d4d commit c637c29

File tree

1 file changed

+5
-12
lines changed

1 file changed

+5
-12
lines changed

.github/workflows/doc.yaml

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,10 @@ jobs:
2525
python-version: ["3.11"]
2626
steps:
2727
- uses: actions/checkout@v4
28-
- name: Set up Python ${{ matrix.python-version }}
29-
uses: actions/setup-python@v4
28+
- name: Install uv and set the python version
29+
uses: astral-sh/setup-uv@v5
3030
with:
31+
enable-cache: true
3132
python-version: ${{ matrix.python-version }}
3233

3334
- name: Configure dataset cache paths
@@ -58,15 +59,7 @@ jobs:
5859
output.write(f"{key}={path}\n")
5960
6061
- name: Install dependencies
61-
run: |
62-
python -m pip install uv
63-
uv venv
64-
uv pip install -e .[all]
65-
66-
- name: Activate virtualenv
67-
run: |
68-
. .venv/bin/activate
69-
echo PATH=$PATH >> $GITHUB_ENV
62+
run: uv pip install -e .[all]
7063

7164
- name: Restore Data Caches (pull_request)
7265
if: github.event_name == 'pull_request'
@@ -114,7 +107,7 @@ jobs:
114107
- name: Create Docs
115108
run: |
116109
cd docs
117-
uv run make html
110+
make html
118111
119112
# Upload documentation as artifact for all builds
120113
- name: Upload documentation artifact

0 commit comments

Comments
 (0)