Skip to content

Commit c91ceaa

Browse files
resolved conversation
1 parent 301117c commit c91ceaa

File tree

3 files changed

+27
-6
lines changed

3 files changed

+27
-6
lines changed

.github/actions/python-environment/action.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,27 +22,32 @@ inputs:
2222
description: 'Comma-separated list of extras'
2323
required: false
2424

25+
use-cache:
26+
description: 'Use cache for poetry environment'
27+
required: false
28+
default: 'true'
29+
2530
runs:
2631

2732
using: "composite"
2833
steps:
2934

30-
- name: Setup up pipx if not present
35+
- name: Set up pipx if not present
3136
shell: bash
3237
run: |
3338
python3 -m pip install --upgrade pipx
34-
pipx ensurepath
39+
python3 -m pipx ensurepath
3540
echo "$HOME/.local/bin" >> $GITHUB_PATH
3641
37-
- name: Setup Poetry (${{ inputs.poetry-version }})
42+
- name: Set up Poetry (${{ inputs.poetry-version }})
3843
shell: bash
3944
run: pipx install poetry==${{ inputs.poetry-version }}
4045

41-
- name: Setup Python (${{ inputs.python-version}})
46+
- name: Set up Python (${{ inputs.python-version}})
4247
uses: actions/setup-python@v5
4348
with:
4449
python-version: ${{ inputs.python-version }}
45-
cache: 'poetry'
50+
cache: ${{ inputs.use-cache == 'true' && 'poetry' || '' }}
4651

4752
- name: Poetry install with extras
4853
working-directory: ${{ inputs.working-directory }}

doc/changes/unreleased.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,7 @@ permissions to be increased for specific jobs.
2525
## Security
2626

2727
* [#420](https://github.com/exasol/python-toolbox/issues/420): Replaced 3rd party action with GitHub actions for gh-pages
28-
* [#422](https://github.com/exasol/python-toolbox/issues/422): Set permissions within the GitHub workflows to restrict usage of the default GitHub token
28+
* [#422](https://github.com/exasol/python-toolbox/issues/422): Set permissions within the GitHub workflows to restrict usage of the default GitHub token
29+
30+
## ✨ Features
31+
* [#413](https://github.com/exasol/python-toolbox/pull/413): Add support for installing extras to python-environment action

doc/github_actions/python_environment.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,18 @@ Parameters
1919
- Poetry version to use
2020
- True
2121
- 2.1.2
22+
* - working-directory
23+
- 'Working directory to use'
24+
- True
25+
- .
26+
* - extras
27+
- Comma-separated list of extras
28+
- False
29+
-
30+
* - use-cache
31+
- Use cache for poetry environment
32+
- False
33+
- true
2234

2335
Example Usage
2436
-------------
@@ -44,5 +56,6 @@ Example Usage
4456
with:
4557
python-version: 3.12
4658
poetry-version: 2.1.2
59+
working-directory: .
4760
4861
...

0 commit comments

Comments
 (0)