Skip to content

Commit 2010032

Browse files
committed
feat: Bump default versions of Python, Node, Ruff, Terraform, Terragrunt
chore: Update README The default versions of many of the tools used have started to lag, so this update just bumps the versions of those tools where appropriate. They should all still be adjustable on the users' side if needed. Puppet and Ruby versions were not changed to closer align to BITS' current Puppet environment.
1 parent 2cd7c05 commit 2010032

8 files changed

+37
-34
lines changed

.github/workflows/ansible-lint.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ name: python-linting
1616
type: string
1717
python_version:
1818
description: The version of Python to use for the run.
19-
default: '3.11'
19+
default: '3.12'
2020
required: false
2121
type: string
2222
timeout_minutes:

.github/workflows/conventional-commit.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
fetch-depth: 0
4646
- uses: actions/setup-node@v4
4747
with:
48-
node-version: 18
48+
node-version: 23
4949
- name: Install commitlint
5050
run: |
5151
npm install --save-dev @commitlint/{cli,config-conventional}

.github/workflows/python-deploy-to-pypi.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ name: pypi_deploy
2020
required: false
2121
type: string
2222
python_version:
23-
default: '3.11'
23+
default: '3.12'
2424
description: The version of Python to use for the run.
2525
required: false
2626
type: string

.github/workflows/python-lint.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ name: python-linting
2020
required: false
2121
type: string
2222
python_version:
23-
default: '3.11'
23+
default: '3.12'
2424
description: The version of Python to use for the run.
2525
required: false
2626
type: string
2727
ruff_version:
28-
default: '0.1.0'
28+
default: '0.8.1'
2929
description: The version of ruff to run.
3030
required: false
3131
type: string

.github/workflows/python-test-deploy-to-pypi.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ name: pypi_test_deploy
2121
type: string
2222
python_version:
2323
description: The version of Python to use for the run.
24-
default: '3.11'
24+
default: '3.12'
2525
required: false
2626
type: string
2727
timeout_minutes:

.github/workflows/python-unit-test.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ name: Python Checks
2020
required: false
2121
type: string
2222
python_versions:
23-
default: '{ "versions": [ "3.9", "3.10", "3.11" ] }'
23+
default: '{ "versions": [ "3.9", "3.10", "3.11", "3.12" ] }'
2424
description: The versions of Python on which the unit tests should run.
2525
required: false
2626
type: string

.github/workflows/terraform-validate.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
required: false
99
type: string
1010
terraform_version:
11-
default: '1.5.5'
11+
default: '1.10.0'
1212
description: The version of Terraform to use when validating.
1313
required: false
1414
type: string
@@ -18,7 +18,7 @@
1818
required: false
1919
type: string
2020
terragrunt_version:
21-
default: '0.48.7'
21+
default: '0.69.3'
2222
description: The version of Terragrunt to use when validating.
2323
required: false
2424
type: string

docs/README.md

+28-25
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ command as part of their commits.
2424

2525
### ansible-lint.yaml
2626

27-
This workflow will setup [Python][5] (`3.11`) and lint the repository using both
27+
This workflow will setup [Python][5] (`3.12`) and lint the repository using both
2828
[yamllint][13] and [ansible-lint](https://github.com/ansible/ansible-lint). [Poetry][3]
2929
is used to install the [Python][5] dependencies. Both [yamllint][13] and
3030
[ansible-lint](https://github.com/ansible/ansible-lint) are expected to be installed by
@@ -34,21 +34,13 @@ the [Poetry][3] configuration in the repository using this workflow.
3434

3535
* `additional_packages`: String of additional packages that should be
3636
installed. Default: ``
37-
* `python_version`: The version of [Python][5] to use. Default: `3.11`
37+
* `python_version`: The version of [Python][5] to use. Default: `3.12`
3838

39-
### conventional-commit.yaml
39+
### close-stale.yaml
4040

41-
This workflow will run the[commitlint](https://commitlint.js.org/)
42-
By default it only checks that PR titles follow [Conventional Commits][1].
43-
In addition the 'subject-case' and 'body-max-line-length' checks are disabled.
44-
45-
* `validate_pr_title`: Validate PR title. Default: true
46-
* `validate_current_commit`: Validate current commit (last commit). Default: false
47-
* validate_pr_commits: Validate PR commits. Default: false
48-
49-
### Close Stale Issues and PRs
50-
51-
This workflow will close any issues or PRs that have been inactive for a certain amount of time. By default, this is set to 30 days. This workflow is based on the `actions/stale`.
41+
This workflow will close any issues or PRs that have been inactive for a
42+
certain amount of time. By default, this is set to 30 days. This workflow is
43+
based on the `actions/stale`.
5244

5345
```yaml
5446
---
@@ -62,6 +54,17 @@ jobs:
6254
stale:
6355
uses: broadinstitute/shared-workflows/.github/workflows/close-stale.yaml
6456
```
57+
58+
### conventional-commit.yaml
59+
60+
This workflow will run the[commitlint](https://commitlint.js.org/)
61+
By default it only checks that PR titles follow [Conventional Commits][1].
62+
In addition the 'subject-case' and 'body-max-line-length' checks are disabled.
63+
64+
* `validate_pr_title`: Validate PR title. Default: true
65+
* `validate_current_commit`: Validate current commit (last commit). Default: false
66+
* validate_pr_commits: Validate PR commits. Default: false
67+
6568
### local-checks.yaml
6669

6770
These are local Actions that run for this repository. This workflow is not
@@ -125,7 +128,7 @@ This workflow will setup [Puppet][7] using
125128
`3.2`). The linting and dependency installations will all happen using
126129
[PDK][9].
127130

128-
#### puppet-linting Inputs
131+
#### puppet-lint Inputs
129132

130133
* `puppet_version`: The version of [Puppet][7] to use in [PDK][9]. Default: `7`
131134
* `ruby_version`: The version of [Ruby][8] to use. Default: `3.2`
@@ -150,7 +153,7 @@ tests will all happen using [PDK][9].
150153

151154
### python-deploy-to-pypi.yaml
152155

153-
This workflow will setup [Python][5] (`3.11`) and do a build and deploy of the
156+
This workflow will setup [Python][5] (`3.12`) and do a build and deploy of the
154157
[Python][5] package to [PyPi][2] using [Poetry][3].
155158

156159
#### python-deploy-to-pypi Inputs
@@ -159,7 +162,7 @@ This workflow will setup [Python][5] (`3.11`) and do a build and deploy of the
159162
Default: ``
160163
* `poetry_install_options`: Extra options to pass to Poetry when doing an install.
161164
Default: `--no-root`
162-
* `python_version`: The version of [Python][5] to use. Default: `3.11`
165+
* `python_version`: The version of [Python][5] to use. Default: `3.12`
163166

164167
#### python-deploy-to-pypi Secrets
165168

@@ -168,7 +171,7 @@ This workflow will setup [Python][5] (`3.11`) and do a build and deploy of the
168171

169172
### python-lint.yaml
170173

171-
This workflow will setup [Python][5] (`3.11`) and lint the repository.
174+
This workflow will setup [Python][5] (`3.12`) and lint the repository.
172175
[Poetry][3] is used to install any [Python][5] dependencies. By default the
173176
linters run are [yamllint][13], and
174177
[pylama](https://github.com/AtomLinter/linter-pylama). As of August 2023,
@@ -182,9 +185,9 @@ by setting the `use_ruff` input to `true`.
182185
Default: ``
183186
* `poetry_install_options`: Extra options to pass to Poetry when doing an install.
184187
Default: `--no-root`
185-
* `python_version`: The version of [Python][5] to use. Default: `3.11`
188+
* `python_version`: The version of [Python][5] to use. Default: `3.12`
186189
* `ruff_version`: The version of [Ruff](https://github.com/astral-sh/ruff) to
187-
run. Default: `0.1.0`
190+
run. Default: `0.8.1`
188191
* `use_pylama`: If true, use
189192
[pylama](https://github.com/AtomLinter/linter-pylama) to lint the repository.
190193
Default: `true`
@@ -207,7 +210,7 @@ use `ubuntu-latest` for the base image.
207210

208211
### python-test-deploy-to-pypi.yaml
209212

210-
This workflow will setup [Python][5] (`3.11`) and do a build and deploy of the
213+
This workflow will setup [Python][5] (`3.12`) and do a build and deploy of the
211214
[Python][5] package to [Test PyPi][6] using [Poetry][3].
212215

213216
#### python-test-deploy-to-pypi Inputs
@@ -216,7 +219,7 @@ This workflow will setup [Python][5] (`3.11`) and do a build and deploy of the
216219
Default: ``
217220
* `poetry_install_options`: Extra options to pass to Poetry when doing an install.
218221
Default: `--no-root`
219-
* `python_version`: The version of [Python][5] to use. Default: `3.11`
222+
* `python_version`: The version of [Python][5] to use. Default: `3.12`
220223

221224
#### python-test-deploy-to-pypi Secrets
222225

@@ -239,7 +242,7 @@ install any [Python][5] dependencies.
239242
create. Default: ``
240243
* `python_versions`: The versions of [Python][5] to use in the unit tests, passed as a
241244
string in JSON format with `versions` as the key. Default:
242-
`'{ "versions": [ "3.7", "3.8", "3.9", "3.10", "3.11" ] }'`
245+
`'{ "versions": [ "3.9", "3.10", "3.11", "3.12" ] }'`
243246
* **Note: Make sure to enclose the JSON string in single quotes!!**
244247
* `run_coverage`: Boolean to determine whether coverage should be run or not. Default:
245248
`true`
@@ -315,11 +318,11 @@ check `terragrunt hclfmt` will also be run.
315318
#### terraform-validate Inputs
316319

317320
* `terraform_version`: The version of Terraform to use when validating.
318-
Default: `1.5.5`
321+
Default: `1.10.0`
319322
* `terragrunt_directory`: The environment directory from which Terragrunt
320323
should run. Default: `prod`
321324
* `terragrunt_version`: The version of Terragrunt to use when validating.
322-
Default: `0.48.7`
325+
Default: `0.69.3`
323326
* `use_terragrunt`: If set to true, use Terragrunt instead of Terraform.
324327
Default: `false`
325328

0 commit comments

Comments
 (0)