File tree Expand file tree Collapse file tree 3 files changed +30
-10
lines changed
plone-package-test-notify Expand file tree Collapse file tree 3 files changed +30
-10
lines changed Original file line number Diff line number Diff line change 11# Changelog
22
3+ ## [ unreleased] - xxxx-xx-xx
4+ ### Changed
5+ - plone-package-test-notify (** breaking change** )
6+ - install python with uv (only compatible with Python 3, if you still need Python 2, use v4)
7+ - Added BUILDOUT_COMMAND input
8+ - Added UV_VERSION input
9+
310## [ v4.1.1] - 2024-11-15
411### Changed
512- repository-dispatch-notify
Original file line number Diff line number Diff line change @@ -188,17 +188,21 @@ Send a notification on a Mattermost webhook
188188
189189Test a Plone package and optionally notify via a mattermost webhook
190190
191+ > [ !WARNING]
192+ > Python 2 support has been dropped in v5. If you still need it, use [ v4] ( https://github.com/IMIO/gha/tree/v4 )
193+
191194#### Inputs
192195
193196| name | required | type | default | description |
194197| ----------------------------- | -------- | ------ | ------------------ | ----------- |
195- | CACHE_KEY | no | string | | key to use in actions/cache |
196- | PYTHON_VERSION | no | string | | Python version to use |
197- | TEST_COMMAND | yes | string | "bin/test" | Test command to run |
198- | REQUIREMENTS_FILE | yes | string | "requirements.txt" | Requirements file |
198+ | BUILDOUT_COMMAND | yes | string | "buildout" | Command to run buildout |
199199| BUILDOUT_CONFIG_FILE | yes | string | "buildout.cfg" | Buildout config file |
200- | MATTERMOST_WEBHOOK_URL | no | string | | Webhook URL to send notifications on Mattermost |
200+ | CACHE_KEY | no | string | | key to use in actions/cache |
201201| INSTALL_DEPENDENCIES_COMMANDS | no | string | | Install dependencies commands (one per line) |
202+ | MATTERMOST_WEBHOOK_URL | no | string | | Webhook URL to send notifications on Mattermost |
203+ | PYTHON_VERSION | yes | string | "3.13" | Python version to use |
204+ | TEST_COMMAND | yes | string | "bin/test" | Test command to run |
205+ | UV_VERSION | yes | string | "0.7.13" | uv version to use |
202206
203207#### Example of usage
204208
Original file line number Diff line number Diff line change 11name : Run code analysis
22description : Run code analysis and notify on Mattermost
33inputs :
4+ BUILDOUT_COMMAND :
5+ description : ' Command to run buildout'
6+ required : true
7+ default : " buildout"
48 BUILDOUT_CONFIG_FILE :
59 description : ' Path to buildout configuration file'
610 required : true
@@ -16,11 +20,16 @@ inputs:
1620 required : false
1721 PYTHON_VERSION :
1822 description : ' Python version to use'
19- required : false
23+ required : true
24+ default : " 3.13"
2025 TEST_COMMAND :
2126 description : ' Command to run tests'
2227 required : true
2328 default : " bin/test"
29+ UV_VERSION :
30+ description : ' Version of uv to use'
31+ required : true
32+ default : " 0.7.13"
2433runs :
2534 using : ' composite'
2635 steps :
@@ -42,11 +51,11 @@ runs:
4251 with :
4352 path : ./eggs
4453 key : ${{ inputs.CACHE_KEY }}
45- - name : Setup Python
46- if : ${{ inputs.PYTHON_VERSION != '' }}
47- 54+ - name : Install uv and set the python version
55+ uses : astral-sh/setup-uv@v6
4856 with :
4957 python-version : ${{ inputs.PYTHON_VERSION }}
58+ version : ${{ inputs.UV_VERSION }}
5059 - name : Install dependencies
5160 if : ${{ inputs.INSTALL_DEPENDENCIES_COMMANDS != '' }}
5261 shell : bash
6069 - name : Run buildout
6170 shell : bash
6271 run : |
63- buildout -c ${{ inputs.BUILDOUT_CONFIG_FILE }} buildout:eggs-directory=./eggs
72+ ${{ inputs.BUILDOUT_COMMAND }} -c ${{ inputs.BUILDOUT_CONFIG_FILE }} buildout:eggs-directory=./eggs
6473 - name : Run tests
6574 shell : bash
6675 run : |
You can’t perform that action at this time.
0 commit comments