Skip to content

Commit 1676955

Browse files
authored
fix(Docs): add path for sphinx-ape action (#35)
1 parent a696709 commit 1676955

2 files changed

Lines changed: 11 additions & 6 deletions

File tree

.github/workflows/docs.yaml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,18 @@ jobs:
2424

2525
steps:
2626
- uses: actions/checkout@v5
27-
- uses: astral-sh/setup-uv@v6
27+
28+
- name: Setup Python
29+
uses: astral-sh/setup-uv@v7
30+
with:
31+
python-version: "3.10"
2832

2933
- name: Install Dependencies
30-
run: |
31-
uv venv
32-
source .venv/bin/activate
33-
uv pip install . --group docs
34+
run: uv sync --group docs
35+
36+
- name: Add venv to PATH
37+
run: echo "${{ github.workspace }}/.venv/bin" >> $GITHUB_PATH
38+
# NOTE: Otherwise the next action nukes the path when it starts
3439

3540
- name: Ape Docs
3641
uses: apeworx/sphinx-ape@main

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ lint = [
6161
"mdformat-pyproject>=0.0.2", # Allows configuring in pyproject.toml
6262
]
6363
docs = [
64-
"sphinx-ape==0.1.0",
64+
"sphinx-ape>=0.1.2,<2",
6565
]
6666
dev = [
6767
"commitlint", # Check for conventionalcommits

0 commit comments

Comments
 (0)