Skip to content

Commit cb54def

Browse files
committed
Merge remote-tracking branch 'upstream/develop' into feat/variancepn-accessor-support
2 parents ca0c002 + a39fad8 commit cb54def

File tree

6,269 files changed

+542944
-52692
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

6,269 files changed

+542944
-52692
lines changed

.github/workflows/check_licenses.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ jobs:
8181
# Install Node.js:
8282
- name: 'Install Node.js'
8383
# Pin action to full length commit SHA
84-
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
84+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
8585
with:
8686
node-version: '20' # 'lts/*'
8787
timeout-minutes: 5
@@ -128,7 +128,7 @@ jobs:
128128
# Upload the log file:
129129
- name: 'Upload log file'
130130
# Pin action to full length commit SHA
131-
uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
131+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
132132
if: always()
133133
with:
134134
# Define a name for the uploaded artifact:

.github/workflows/codeql.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ jobs:
121121
# Install Node.js:
122122
- name: 'Install Node.js'
123123
# Pin action to full length commit SHA
124-
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
124+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
125125
with:
126126
node-version: '20' # 'lts/*'
127127
timeout-minutes: 5

.github/workflows/first_time_greeting.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,12 @@ jobs:
4343
# Define the type of virtual host machine:
4444
runs-on: ubuntu-latest
4545

46+
# Only run this job if the pull request did not have label `automated-pr` and is not from bots:
47+
if: >
48+
contains(github.event.pull_request.labels.*.name, 'automated-pr') == false &&
49+
github.event.pull_request.user.login != 'stdlib-bot' &&
50+
github.event.pull_request.user.login != 'dependabot[bot]'
51+
4652
# Define the sequence of job steps...
4753
steps:
4854

.github/workflows/generate_monthly_changelog.yml

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ jobs:
5252
# Specify whether to remove untracked files before checking out the repository:
5353
clean: false
5454

55-
# Limit clone depth to the most recent commit:
56-
fetch-depth: 1
55+
# Fetch entire history so that we are guaranteed to have all commit messages for the last month:
56+
fetch-depth: 0
5757

5858
# Token for accessing the repository:
5959
token: ${{ secrets.STDLIB_BOT_FGPAT_REPO_READ }}
@@ -64,7 +64,7 @@ jobs:
6464
# Install Node.js:
6565
- name: 'Install Node.js'
6666
# Pin action to full length commit SHA
67-
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
67+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
6868
with:
6969
node-version: '20' # 'lts/*'
7070
timeout-minutes: 5
@@ -101,23 +101,12 @@ jobs:
101101
- name: 'Generate changelog for last month'
102102
run: |
103103
UNTIL=$(date +"%Y-%m-01")
104-
node -e "
105-
var generate = require( '@stdlib/_tools/changelog/generate' );
106-
var changelog = generate( '@stdlib', {
107-
'flags': {
108-
'since': '$UNTIL - 1 month',
109-
'until': '$UNTIL'
110-
},
111-
'format': 'aggregated'
112-
});
113-
console.log( changelog.content );
114-
115-
" > ./www-blog-monthly-changelog/monthly_changelog_${UNTIL//-/_}.md
104+
node lib/node_modules/@stdlib/_tools/scripts/generate_monthly_changelog.js > ./www-blog-monthly-changelog/monthly_changelog_${UNTIL//-/_}.md
116105
117106
# Import GPG key to sign commits:
118107
- name: 'Import GPG key to sign commits'
119108
# Pin action to full length commit SHA
120-
uses: crazy-max/ghaction-import-gpg@cb9bde2e2525e640591a934b1fd28eef1dcaf5e5 # v6.2.0
109+
uses: crazy-max/ghaction-import-gpg@e89d40939c28e39f97cf32126055eeae86ba74ec # v6.3.0
121110
with:
122111
gpg_private_key: ${{ secrets.STDLIB_BOT_GPG_PRIVATE_KEY }}
123112
passphrase: ${{ secrets.STDLIB_BOT_GPG_PASSPHRASE }}

.github/workflows/generate_pr_commit_message.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ jobs:
6565
# Generate commit message:
6666
- name: 'Generate commit message'
6767
id: commit_message
68+
shell: bash {0} # Omit -e to avoid triggering a failure if the script returns a non-zero exit code
6869
run: |
6970
COMMIT_MESSAGE=$($GITHUB_WORKSPACE/.github/workflows/scripts/generate_pr_commit_message $PR_NUMBER)
7071
EXIT_CODE=$?
@@ -82,13 +83,23 @@ jobs:
8283
# Ensure the script itself doesn't fail the workflow:
8384
exit 0
8485
86+
# Check if the commit message already exists in the PR comments:
87+
- name: 'Check if commit message already exists in PR comments'
88+
uses: peter-evans/find-comment@3eae4d37986fb5a8592848f6a574fdf654e61f9e # v3.1.0
89+
id: fc
90+
with:
91+
issue-number: ${{ github.event.pull_request.number }}
92+
body-includes: '<!-- PR_COMMIT_MESSAGE -->'
93+
8594
# Post commit message as PR comment:
8695
- name: 'Post commit message as PR comment'
8796
# Pin action to full length commit SHA
8897
uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043 # v4.0.0
8998
with:
9099
token: ${{ secrets.STDLIB_BOT_PAT_REPO_WRITE }}
100+
comment-id: ${{ steps.fc.outputs.comment-id }}
91101
issue-number: ${{ github.event.pull_request.number }}
102+
edit-mode: replace
92103
body: |
93104
### PR Commit Message
94105
@@ -99,3 +110,5 @@ jobs:
99110
*Please review the above commit message and make any necessary adjustments.*
100111
101112
${{ steps.commit_message.outputs.has_tracking_issue == 'true' && '⚠️ **Action Required**: This PR references tracking issues. Please update the PR description to replace any "Closes", "Fixes", or "Resolves" keywords with "Ref" when referencing these issues.' || '' }}
113+
114+
<!-- PR_COMMIT_MESSAGE -->

.github/workflows/lint_autofix.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ jobs:
9898
# Install Node.js:
9999
- name: 'Install Node.js'
100100
# Pin action to full length commit SHA
101-
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
101+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
102102
with:
103103
node-version: '20' # 'lts/*'
104104
timeout-minutes: 5

.github/workflows/lint_changed_files.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ jobs:
6767
# Install Node.js:
6868
- name: 'Install Node.js'
6969
# Pin action to full length commit SHA
70-
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
70+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
7171
with:
7272
node-version: '20' # 'lts/*'
7373
timeout-minutes: 5

.github/workflows/lint_pr_title.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ jobs:
7272
# Install Node.js:
7373
- name: 'Install Node.js'
7474
# Pin action to full length commit SHA
75-
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
75+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
7676
with:
7777
node-version: '20' # 'lts/*'
7878
timeout-minutes: 5

.github/workflows/lint_random_files.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ jobs:
108108
# Install Node.js:
109109
- name: 'Install Node.js'
110110
# Pin action to full length commit SHA
111-
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
111+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
112112
with:
113113
node-version: '20' # 'lts/*'
114114
timeout-minutes: 5

.github/workflows/linux_benchmark.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ jobs:
180180
# Install Node.js:
181181
- name: 'Install Node.js'
182182
# Pin action to full length commit SHA
183-
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
183+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
184184
with:
185185
node-version: ${{ matrix.NODE_VERSION }}
186186
timeout-minutes: 5
@@ -251,7 +251,7 @@ jobs:
251251
# Upload the log file:
252252
- name: 'Upload log file'
253253
# Pin action to full length commit SHA
254-
uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
254+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
255255
if: always()
256256
with:
257257
# Define a name for the uploaded artifact (ensuring a unique name for each job):

.github/workflows/linux_examples.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ jobs:
180180
# Install Node.js:
181181
- name: 'Install Node.js'
182182
# Pin action to full length commit SHA
183-
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
183+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
184184
with:
185185
node-version: ${{ matrix.NODE_VERSION }}
186186
timeout-minutes: 5
@@ -251,7 +251,7 @@ jobs:
251251
# Upload the log file:
252252
- name: 'Upload log file'
253253
# Pin action to full length commit SHA
254-
uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
254+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
255255
if: always()
256256
with:
257257
# Define a name for the uploaded artifact (ensuring a unique name for each job):

.github/workflows/linux_test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ jobs:
179179
# Install Node.js:
180180
- name: 'Install Node.js'
181181
# Pin action to full length commit SHA
182-
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
182+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
183183
with:
184184
node-version: ${{ matrix.NODE_VERSION }}
185185
timeout-minutes: 5
@@ -250,7 +250,7 @@ jobs:
250250
# Upload the log file:
251251
- name: 'Upload log file'
252252
# Pin action to full length commit SHA
253-
uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
253+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
254254
if: always()
255255
with:
256256
# Define a name for the uploaded artifact (ensuring a unique name for each job):

.github/workflows/linux_test_cov.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ jobs:
180180
# Install Node.js:
181181
- name: 'Install Node.js'
182182
# Pin action to full length commit SHA
183-
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
183+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
184184
with:
185185
node-version: ${{ matrix.NODE_VERSION }}
186186
timeout-minutes: 5
@@ -251,7 +251,7 @@ jobs:
251251
# Upload the log file:
252252
- name: 'Upload log file'
253253
# Pin action to full length commit SHA
254-
uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
254+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
255255
if: always()
256256
with:
257257
# Define a name for the uploaded artifact (ensuring a unique name for each job):

.github/workflows/linux_test_install.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ jobs:
209209
# Install Node.js:
210210
- name: 'Install Node.js'
211211
# Pin action to full length commit SHA
212-
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
212+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
213213
with:
214214
node-version: ${{ matrix.NODE_VERSION }}
215215
timeout-minutes: 5
@@ -274,7 +274,7 @@ jobs:
274274
# Upload the log file:
275275
- name: 'Upload log file'
276276
# Pin action to full length commit SHA
277-
uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
277+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
278278
if: always()
279279
with:
280280
# Define a name for the uploaded artifact (ensuring a unique name for each job):

.github/workflows/macos_benchmark.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ jobs:
166166
# Install Node.js:
167167
- name: 'Install Node.js'
168168
# Pin action to full length commit SHA
169-
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
169+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
170170
with:
171171
node-version: ${{ matrix.NODE_VERSION }}
172172
timeout-minutes: 5
@@ -237,7 +237,7 @@ jobs:
237237
# Upload the log file:
238238
- name: 'Upload log file'
239239
# Pin action to full length commit SHA
240-
uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
240+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
241241
if: always()
242242
with:
243243
# Define a name for the uploaded artifact (ensuring a unique name for each job):

.github/workflows/macos_test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ jobs:
165165
# Install Node.js:
166166
- name: 'Install Node.js'
167167
# Pin action to full length commit SHA
168-
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
168+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
169169
with:
170170
node-version: ${{ matrix.NODE_VERSION }}
171171
timeout-minutes: 5
@@ -236,7 +236,7 @@ jobs:
236236
# Upload the log file:
237237
- name: 'Upload log file'
238238
# Pin action to full length commit SHA
239-
uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
239+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
240240
if: always()
241241
with:
242242
# Define a name for the uploaded artifact (ensuring a unique name for each job):

.github/workflows/macos_test_cov.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ jobs:
166166
# Install Node.js:
167167
- name: 'Install Node.js'
168168
# Pin action to full length commit SHA
169-
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
169+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
170170
with:
171171
node-version: ${{ matrix.NODE_VERSION }}
172172
timeout-minutes: 5
@@ -237,7 +237,7 @@ jobs:
237237
# Upload the log file:
238238
- name: 'Upload log file'
239239
# Pin action to full length commit SHA
240-
uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
240+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
241241
if: always()
242242
with:
243243
# Define a name for the uploaded artifact (ensuring a unique name for each job):

.github/workflows/macos_test_npm_install.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ jobs:
168168
# Install Node.js:
169169
- name: 'Install Node.js'
170170
# Pin action to full length commit SHA
171-
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
171+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
172172
with:
173173
node-version: ${{ matrix.NODE_VERSION }}
174174
timeout-minutes: 5
@@ -233,7 +233,7 @@ jobs:
233233
# Upload the log file:
234234
- name: 'Upload log file'
235235
# Pin action to full length commit SHA
236-
uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
236+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
237237
if: always()
238238
with:
239239
# Define a name for the uploaded artifact (ensuring a unique name for each job):

.github/workflows/make.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ jobs:
7272
# Install Node.js:
7373
- name: 'Install Node.js'
7474
# Pin action to full length commit SHA
75-
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
75+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
7676
with:
7777
node-version: '20' # 'lts/*'
7878
timeout-minutes: 5

.github/workflows/markdown_equations.yml

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ jobs:
7272
# Install Node.js:
7373
- name: 'Install Node.js'
7474
# Pin action to full length commit SHA
75-
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
75+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
7676
with:
7777
node-version: '20' # 'lts/*'
7878
timeout-minutes: 5
@@ -118,13 +118,16 @@ jobs:
118118
run: |
119119
make markdown-svg-equations-files FILES="${{ steps.changed.outputs.files }}"
120120
121-
if [[ -z "$(git status --porcelain)" ]]; then
122-
# If no files were changed, exit with a success status code:
121+
# Stage *all* tracked and untracked changes first...
122+
git add -A
123+
124+
if git diff --cached --quiet; then
123125
echo "changed=false" >> $GITHUB_OUTPUT
126+
127+
# Exit with a success status code:
124128
exit 0
125129
else
126-
# Otherwise, add changed files to the staging area and commit:
127-
git add -A && git commit -m "docs: update Markdown equation SVGs"
130+
git commit -m "docs: update Markdown equation SVGs"
128131
echo "changed=true" >> $GITHUB_OUTPUT
129132
fi
130133
timeout-minutes: 15
@@ -136,13 +139,16 @@ jobs:
136139
make markdown-img-equations-files FILES="${{ steps.changed.outputs.files }}"
137140
make markdown-img-equations-src-urls-files FILES="${{ steps.changed.outputs.files }}"
138141
139-
if [[ -z "$(git status --porcelain)" ]]; then
140-
# If no files were changed, exit with a success status code:
142+
# Stage *all* tracked and untracked changes first...
143+
git add -A
144+
145+
if git diff --cached --quiet; then
141146
echo "changed=false" >> $GITHUB_OUTPUT
147+
148+
# Exit with a success status code:
142149
exit 0
143150
else
144-
# Otherwise, add changed files to the staging area and commit:
145-
git add -A && git commit -m "docs: update Markdown equation elements"
151+
git commit -m "docs: update Markdown equation elements"
146152
echo "changed=true" >> $GITHUB_OUTPUT
147153
fi
148154
timeout-minutes: 15

.github/workflows/markdown_links.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ jobs:
100100
# Install Node.js:
101101
- name: 'Install Node.js'
102102
# Pin action to full length commit SHA
103-
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
103+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
104104
with:
105105
node-version: '20' # 'lts/*'
106106
timeout-minutes: 5
@@ -164,7 +164,7 @@ jobs:
164164
# Upload the log files:
165165
- name: 'Upload log files'
166166
# Pin action to full length commit SHA
167-
uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
167+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
168168
if: always()
169169
with:
170170
# Define a name for the uploaded artifact:

0 commit comments

Comments
 (0)