File tree Expand file tree Collapse file tree 5 files changed +11
-1
lines changed Expand file tree Collapse file tree 5 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,10 @@ name: "Setup Python Environment"
2
2
description : " Set up Python environment for the given Python version"
3
3
4
4
inputs :
5
+ extra-dependencies :
6
+ description : " Extra dependency groups to install"
7
+ required : false
8
+ default : " "
5
9
python-version :
6
10
description : " Python version to use"
7
11
required : true
26
30
cache-suffix : ${{ matrix.python-version }}
27
31
28
32
- name : Install Python dependencies
29
- run : uv sync
33
+ run : uv sync $${{ inputs.extra-dependencies }}
30
34
shell : bash
Original file line number Diff line number Diff line change 21
21
22
22
- name : Set up the environment
23
23
uses : ./.github/actions/setup-python-env
24
+ with :
25
+ extra-dependencies : --group docs
24
26
25
27
- name : Check if documentation can be built
26
28
run : uv run mkdocs build -s
Original file line number Diff line number Diff line change 24
24
25
25
- name : Set up the environment
26
26
uses : ./.github/actions/setup-python-env
27
+ with :
28
+ extra-dependencies : --all-extras
27
29
28
30
- name : Run pre-commit
29
31
run : uv run pre-commit run -a --show-diff-on-failure
Original file line number Diff line number Diff line change 27
27
uses : ./.github/actions/setup-python-env
28
28
with :
29
29
python-version : ${{ matrix.python-version }}
30
+ extra-dependencies : --all-extras --dev
30
31
31
32
- name : Run tests
32
33
run : uv run inv pytest --junit --no-pty --base
Original file line number Diff line number Diff line change 28
28
uses : ./.github/actions/setup-python-env
29
29
with :
30
30
python-version : ${{ matrix.python-version }}
31
+ extra-dependencies : --group validate
31
32
32
33
- name : Check typing
33
34
run : uv run mypy
You can’t perform that action at this time.
0 commit comments