Skip to content

Commit 5e354c3

Browse files
committed
Add pip-args argument
1 parent d250c5b commit 5e354c3

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.github/workflows/hexdoc.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ on:
1919
description: Pip extras for your package (eg. [dev])
2020
type: string
2121
required: false
22+
pip-args:
23+
description: Extra arguments when running `uv pip install`
24+
type: string
25+
required: false
2226
deploy-pages:
2327
description: If the workflow should deploy to GitHub Pages
2428
type: boolean
@@ -60,6 +64,7 @@ jobs:
6064
with:
6165
python-version: ${{ inputs.python-version }}
6266
pip-extras: ${{ inputs.pip-extras }}
67+
pip-args: ${{ inputs.pip-args }}
6368

6469
- id: build
6570
uses: hexdoc-dev/actions/build@v0
@@ -87,6 +92,7 @@ jobs:
8792
with:
8893
python-version: ${{ inputs.python-version }}
8994
pip-extras: ${{ inputs.pip-extras }}
95+
pip-args: ${{ inputs.pip-args }}
9096

9197
- uses: hexdoc-dev/actions/deploy-pages@v0
9298
env:

setup/action.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ inputs:
1313
pip-extras:
1414
description: Pip extras for your package (eg. "[dev]")
1515
required: false
16+
pip-args:
17+
description: Extra arguments when running `uv pip install`
18+
required: false
1619

1720
runs:
1821
using: composite
@@ -28,4 +31,4 @@ runs:
2831

2932
- name: Install Python packages
3033
shell: bash
31-
run: uv pip install --system -e .${{ inputs.pip-extras }}
34+
run: uv pip install --system -e .${{ inputs.pip-extras }} ${{ inputs.pip-args }}

0 commit comments

Comments
 (0)