Skip to content

Commit 2f709b1

Browse files
Bump the actions group in /.github/workflows with 4 updates + Update cookiecutter (#113)
1 parent 31d86c9 commit 2f709b1

24 files changed

+257
-188
lines changed

.cruft.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
11
{
22
"template": "https://github.com/Ouranosinc/cookiecutter-pypackage.git",
3-
"commit": "760bcbb2540bd973d57ea1aa1f1b24759f6d0955",
3+
"commit": "66708e5e15f00caaaaf1748bf0a7e041bc5c6243",
44
"checkout": null,
55
"context": {
66
"cookiecutter": {
77
"full_name": "Abel Aoun",
88
"email": "aoun.abel@gmail.com",
99
"github_username": "xarray-contrib",
10+
"orcid_id": "0000-0003-2289-2890",
1011
"project_name": "xncml",
1112
"project_slug": "xncml",
1213
"project_short_description": "Tools for manipulating NcML (NetCDF Markup Language) files with/for xarray",
1314
"pypi_username": "bzah",
1415
"version": "0.5.1",
1516
"use_pytest": "y",
16-
"use_black": "n",
1717
"use_conda": "n",
18-
"add_pyup_badge": "n",
1918
"make_docs": "y",
2019
"add_translations": "n",
2120
"command_line_interface": "No command-line interface",
@@ -24,7 +23,7 @@
2423
"generated_with_cruft": "y",
2524
"__gh_slug": "https://github.com/xarray-contrib/xncml",
2625
"_template": "https://github.com/Ouranosinc/cookiecutter-pypackage.git",
27-
"_commit": "760bcbb2540bd973d57ea1aa1f1b24759f6d0955"
26+
"_commit": "66708e5e15f00caaaaf1748bf0a7e041bc5c6243"
2827
}
2928
},
3029
"directory": null

.flake8

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ ignore =
1010
D,
1111
E,
1212
F,
13+
RST210,
1314
W503
1415
per-file-ignores =
1516
rst-roles =

.github/dependabot.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ updates:
66
- package-ecosystem: github-actions
77
directory: /.github/workflows
88
schedule:
9-
interval: monthly
9+
interval: "quarterly"
1010
groups:
1111
actions:
1212
patterns:
@@ -15,7 +15,7 @@ updates:
1515
- package-ecosystem: pip
1616
directory: /
1717
schedule:
18-
interval: monthly
18+
interval: "quarterly"
1919
groups:
2020
ci:
2121
patterns:

.github/workflows/codeql.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565

6666
# Initializes the CodeQL tools for scanning.
6767
- name: Initialize CodeQL
68-
uses: github/codeql-action/init@3599b3baa15b485a2e49ef411a7a4bb2452e7f93 # v3.29.5
68+
uses: github/codeql-action/init@0499de31b99561a6d14a36a5f662c2a54f91beee # v3.29.5
6969
with:
7070
languages: ${{ matrix.language }}
7171
build-mode: ${{ matrix.build-mode }}
@@ -94,6 +94,6 @@ jobs:
9494
exit 1
9595
9696
- name: Perform CodeQL Analysis
97-
uses: github/codeql-action/analyze@3599b3baa15b485a2e49ef411a7a4bb2452e7f93 # v3.29.5
97+
uses: github/codeql-action/analyze@0499de31b99561a6d14a36a5f662c2a54f91beee # v3.29.5
9898
with:
9999
category: "/language:${{matrix.language}}"

.github/workflows/dependency-review.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ jobs:
3232
persist-credentials: false
3333

3434
- name: Dependency Review
35-
uses: actions/dependency-review-action@56339e523c0409420f6c2c9a2f4292bbb3c07dd3 # v4.8.0
35+
uses: actions/dependency-review-action@40c09b7dc99638e5ddb0bfd91c1673effc064d8a # v4.8.1

.github/workflows/main.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ jobs:
2424
runs-on: ubuntu-latest
2525
strategy:
2626
matrix:
27-
python-version:
28-
- "3.x"
27+
python-version: [ "3.13" ]
2928
steps:
3029
- name: Harden Runner
3130
uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
@@ -61,11 +60,7 @@ jobs:
6160
strategy:
6261
matrix:
6362
os: [ 'ubuntu-latest' ]
64-
python-version:
65-
- "3.10"
66-
- "3.11"
67-
- "3.12"
68-
- "3.13"
63+
python-version: [ "3.10", "3.11", "3.12", "3.13" ]
6964
steps:
7065
- name: Harden Runner
7166
uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1

.github/workflows/publish-pypi.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ jobs:
1616
permissions:
1717
# IMPORTANT: this permission is mandatory for trusted publishing
1818
id-token: write
19+
strategy:
20+
matrix:
21+
python: [ "3.13" ]
1922
steps:
2023
- name: Harden Runner
2124
uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
@@ -28,19 +31,24 @@ jobs:
2831
pypi.org:443
2932
ruf-repo-cdn.sigstore.dev:443
3033
upload.pypi.org:443
34+
3135
- name: Checkout Repository
3236
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
3337
with:
3438
persist-credentials: false
39+
3540
- name: Set up Python3
3641
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
3742
with:
38-
python-version: "3.x"
43+
python-version: ${{ matrix.python }}
44+
3945
- name: Install CI libraries
4046
run: |
4147
python -m pip install --require-hashes -r CI/requirements_ci.txt
48+
4249
- name: Build a binary wheel and a source tarball
4350
run: |
4451
python -m flit build
52+
4553
- name: Publish distribution 📦 to PyPI
4654
uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # v1.13.0

.github/workflows/tag-testpypi.yml

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,20 @@ jobs:
1919
- name: Harden Runner
2020
uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
2121
with:
22-
egress-policy: audit
22+
egress-policy: block
23+
allowed-endpoints: >
24+
files.pythonhosted.org:443
25+
github.com:443
26+
pypi.org:443
27+
test.pypi.org:443
28+
2329
- name: Checkout Repository
2430
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
2531
with:
2632
persist-credentials: false
33+
2734
- name: Create Release
28-
uses: softprops/action-gh-release@6cbd405e2c4e67a21c47fa9e383d020e4e28b836 # 2.3.3
35+
uses: softprops/action-gh-release@6da8fa9354ddfdc4aeace5fc48d7f679b5214090 # 2.4.1
2936
env:
3037
# This token is provided by Actions, you do not need to create your own token
3138
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -42,6 +49,9 @@ jobs:
4249
permissions:
4350
# IMPORTANT: this permission is mandatory for trusted publishing
4451
id-token: write
52+
strategy:
53+
matrix:
54+
python: [ "3.13" ]
4555
steps:
4656
- name: Harden Runner
4757
uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
@@ -54,20 +64,25 @@ jobs:
5464
pypi.org:443
5565
ruf-repo-cdn.sigstore.dev:443
5666
test.pypi.org:443
67+
5768
- name: Checkout Repository
5869
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
5970
with:
6071
persist-credentials: false
72+
6173
- name: Set up Python3
6274
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
6375
with:
64-
python-version: "3.x"
76+
python-version: ${{ matrix.python }}
77+
6578
- name: Install CI libraries
6679
run: |
6780
python -m pip install --require-hashes -r CI/requirements_ci.txt
81+
6882
- name: Build a binary wheel and a source tarball
6983
run: |
7084
python -m flit build
85+
7186
- name: Publish distribution 📦 to Test PyPI
7287
uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # v1.13.0
7388
with:

.github/workflows/workflow-warning.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ jobs:
3131
egress-policy: block
3232
allowed-endpoints: >
3333
api.github.com:443
34+
3435
- name: Find Warning Comment
3536
uses: peter-evans/find-comment@b30e6a3c0ed37e7c023ccd3f1db5c6c0b0c23aad # v4.0.0
3637
id: fc_warning
@@ -39,12 +40,13 @@ jobs:
3940
comment-author: 'github-actions[bot]'
4041
body-includes: |
4142
This Pull Request modifies GitHub workflows and is coming from a fork.
43+
4244
- name: Create Warning Comment
4345
if: |
4446
(steps.fc_warning.outputs.comment-id == '') &&
4547
(!contains(github.event.pull_request.labels.*.name, 'approved')) &&
4648
(github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name)
47-
uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043 # v4.0.0
49+
uses: peter-evans/create-or-update-comment@e8674b075228eee787fea43ef493e45ece1004c9 # v5.0.0
4850
with:
4951
comment-id: ${{ steps.fc_warning.outputs.comment-id }}
5052
issue-number: ${{ github.event.pull_request.number }}
@@ -53,17 +55,19 @@ jobs:
5355
> This Pull Request modifies GitHub Workflows and is coming from a fork.
5456
**It is very important for the reviewer to ensure that the workflow changes are appropriate.**
5557
edit-mode: replace
58+
5659
- name: Find Note Comment
5760
uses: peter-evans/find-comment@b30e6a3c0ed37e7c023ccd3f1db5c6c0b0c23aad # v4.0.0
5861
id: fc_note
5962
with:
6063
issue-number: ${{ github.event.pull_request.number }}
6164
comment-author: 'github-actions[bot]'
6265
body-includes: Workflow changes in this Pull Request have been approved!
66+
6367
- name: Update Comment
6468
if: |
6569
contains(github.event.pull_request.labels.*.name, 'approved')
66-
uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043 # v4.0.0
70+
uses: peter-evans/create-or-update-comment@e8674b075228eee787fea43ef493e45ece1004c9 # v5.0.0
6771
with:
6872
comment-id: ${{ steps.fc_note.outputs.comment-id }}
6973
issue-number: ${{ github.event.pull_request.number }}

.pre-commit-config.yaml

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,24 +11,26 @@ repos:
1111
- repo: https://github.com/pre-commit/pre-commit-hooks
1212
rev: v6.0.0
1313
hooks:
14-
- id: trailing-whitespace
15-
- id: end-of-file-fixer
16-
exclude: '.ipynb'
17-
- id: fix-byte-order-marker
1814
- id: name-tests-test
1915
args: [ '--pytest-test-first' ]
2016
- id: no-commit-to-branch
2117
args: [ '--branch', 'main' ]
2218
- id: check-docstring-first
2319
- id: check-merge-conflict
2420
- id: check-json
21+
- id: pretty-format-json
22+
args: [ '--autofix', '--no-ensure-ascii', '--no-sort-keys' ]
23+
exclude: '.ipynb'
2524
- id: check-toml
2625
- id: check-yaml
2726
args: [ '--allow-multiple-documents' ]
2827
- id: debug-statements
29-
- id: pretty-format-json
30-
args: [ '--autofix', '--no-ensure-ascii', '--no-sort-keys' ]
28+
- id: end-of-file-fixer
3129
exclude: '.ipynb'
30+
- id: fix-byte-order-marker
31+
- id: name-tests-test
32+
args: [ '--pytest-test-first' ]
33+
- id: trailing-whitespace
3234
- repo: https://github.com/pappasam/toml-sort
3335
rev: v0.24.3
3436
hooks:
@@ -52,8 +54,8 @@ repos:
5254
- repo: https://github.com/astral-sh/ruff-pre-commit
5355
rev: v0.13.3
5456
hooks:
55-
- id: ruff
56-
args: [ '--fix' ]
57+
- id: ruff-check
58+
args: [ '--fix', '--show-fixes' ]
5759
- id: ruff-format
5860
- repo: https://github.com/pycqa/flake8
5961
rev: 7.3.0
@@ -66,7 +68,7 @@ repos:
6668
hooks:
6769
- id: vulture
6870
# - repo: https://github.com/pre-commit/mirrors-mypy
69-
# rev: v1.14.1
71+
# rev: v1.18.2
7072
# hooks:
7173
# - id: mypy
7274
- repo: https://github.com/codespell-project/codespell
@@ -76,7 +78,7 @@ repos:
7678
additional_dependencies: [ 'tomli' ]
7779
args: [ '--toml=pyproject.toml' ]
7880
# - repo: https://github.com/numpy/numpydoc
79-
# rev: v1.8.0
81+
# rev: v1.9.0
8082
# hooks:
8183
# - id: numpydoc-validation
8284
# exclude: ^docs/|^tests/

0 commit comments

Comments
 (0)