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"
22description : " Set up Python environment for the given Python version"
33
44inputs :
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
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
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments