Skip to content

Commit 5125dcf

Browse files
committed
Tweak what dependencies get installed for each workflow
1 parent b0a72dc commit 5125dcf

File tree

5 files changed

+11
-1
lines changed

5 files changed

+11
-1
lines changed

.github/actions/setup-python-env/action.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ name: "Setup Python Environment"
22
description: "Set up Python environment for the given Python version"
33

44
inputs:
5+
extra-dependencies:
6+
description: "Extra dependency groups to install"
7+
required: false
8+
default: ""
59
python-version:
610
description: "Python version to use"
711
required: true
@@ -26,5 +30,5 @@ runs:
2630
cache-suffix: ${{ matrix.python-version }}
2731

2832
- name: Install Python dependencies
29-
run: uv sync
33+
run: uv sync $${{ inputs.extra-dependencies }}
3034
shell: bash

.github/workflows/docs.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ jobs:
2121

2222
- name: Set up the environment
2323
uses: ./.github/actions/setup-python-env
24+
with:
25+
extra-dependencies: --group docs
2426

2527
- name: Check if documentation can be built
2628
run: uv run mkdocs build -s

.github/workflows/quality.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ jobs:
2424

2525
- name: Set up the environment
2626
uses: ./.github/actions/setup-python-env
27+
with:
28+
extra-dependencies: --all-extras
2729

2830
- name: Run pre-commit
2931
run: uv run pre-commit run -a --show-diff-on-failure

.github/workflows/tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ jobs:
2727
uses: ./.github/actions/setup-python-env
2828
with:
2929
python-version: ${{ matrix.python-version }}
30+
extra-dependencies: --all-extras --dev
3031

3132
- name: Run tests
3233
run: uv run inv pytest --junit --no-pty --base

.github/workflows/typecheck.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ jobs:
2828
uses: ./.github/actions/setup-python-env
2929
with:
3030
python-version: ${{ matrix.python-version }}
31+
extra-dependencies: --group validate
3132

3233
- name: Check typing
3334
run: uv run mypy

0 commit comments

Comments
 (0)