Skip to content

Commit 8305776

Browse files
committed
Auto-generated commit
1 parent b9474ec commit 8305776

File tree

6 files changed

+128
-9
lines changed

6 files changed

+128
-9
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
#/
2+
# @license Apache-2.0
3+
#
4+
# Copyright (c) 2024 The Stdlib Authors.
5+
#
6+
# Licensed under the Apache License, Version 2.0 (the "License");
7+
# you may not use this file except in compliance with the License.
8+
# You may obtain a copy of the License at
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing, software
13+
# distributed under the License is distributed on an "AS IS" BASIS,
14+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
# See the License for the specific language governing permissions and
16+
# limitations under the License.
17+
#/
18+
19+
# Workflow name:
20+
name: test_published_package
21+
22+
# Workflow triggers:
23+
on:
24+
# Run workflow on a weekly schedule:
25+
schedule:
26+
# * is a special character in YAML so you have to quote this string
27+
- cron: '25 13 * * 2'
28+
29+
# Run workflow upon completion of `publish` workflow run:
30+
workflow_run:
31+
workflows: ["publish"]
32+
types: [completed]
33+
34+
# Allow workflow to be manually run:
35+
workflow_dispatch:
36+
37+
# Workflow jobs:
38+
jobs:
39+
test-published:
40+
# Define a display name:
41+
name: 'Test running examples of published package'
42+
43+
# Define the type of virtual host machine:
44+
runs-on: ubuntu-latest
45+
46+
# Define environment variables:
47+
env:
48+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
49+
50+
# Run workflow job if `publish` workflow run is successful or when the workflow is manually run:
51+
if: ${{ github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch' }}
52+
53+
# Define the job's steps:
54+
steps:
55+
# Checkout the repository:
56+
- name: 'Checkout repository'
57+
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
58+
59+
# Install Node.js:
60+
- name: 'Install Node.js'
61+
uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1
62+
with:
63+
node-version: 20
64+
timeout-minutes: 5
65+
66+
# Create test directory and run examples:
67+
- name: 'Create test directory and run examples'
68+
run: |
69+
cd ..
70+
mkdir test-published
71+
cd test-published
72+
73+
# Copy example file:
74+
cp $GITHUB_WORKSPACE/examples/index.js .
75+
76+
# Create a minimal package.json
77+
echo '{
78+
"name": "test-published",
79+
"version": "1.0.0",
80+
"main": "index.js",
81+
"dependencies": {}
82+
}' > package.json
83+
84+
# Get package name and modify example file:
85+
PACKAGE_NAME=$(jq -r '.name' $GITHUB_WORKSPACE/package.json)
86+
ESCAPED_PACKAGE_NAME=$(echo "$PACKAGE_NAME" | sed 's/[\/&]/\\&/g')
87+
88+
sed -i "s/require( '.\/..\/lib' )/require( '$ESCAPED_PACKAGE_NAME' )/g" index.js
89+
90+
# Extract and install dependencies:
91+
DEPS=$(grep -oP "require\(\s*'([^']+)'\s*\)" index.js | sed "s/require(\s*'//" | sed "s/'\s*)//" | grep -v "^\.")
92+
for dep in $DEPS; do
93+
npm install $dep --save
94+
done
95+
96+
# Run the example:
97+
node index.js
98+
99+
# Send Slack notification if job fails:
100+
- name: 'Send notification to Slack in case of failure'
101+
uses: 8398a7/action-slack@28ba43ae48961b90635b50953d216767a6bea486 # v3.16.2
102+
with:
103+
status: ${{ job.status }}
104+
channel: '#npm-ci'
105+
if: failure()

CHANGELOG.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
55
<section class="release" id="unreleased">
66

7-
## Unreleased (2024-09-07)
7+
## Unreleased (2024-11-21)
88

99
<section class="features">
1010

@@ -22,6 +22,7 @@
2222

2323
<details>
2424

25+
- [`6c020d3`](https://github.com/stdlib-js/stdlib/commit/6c020d33665c4aec232196fd86214b296ddc7d36) - **chore:** use relative paths to load package.json file _(by Philipp Burckhardt)_
2526
- [`6a6bc1d`](https://github.com/stdlib-js/stdlib/commit/6a6bc1da925c3c3f24463cf0d381d0d38e84868b) - **feat:** add `ndarray/base/fill` [(#2817)](https://github.com/stdlib-js/stdlib/pull/2817) _(by Muhammad Haris, Athan Reines)_
2627

2728
</details>
@@ -34,10 +35,11 @@
3435

3536
### Contributors
3637

37-
A total of 2 people contributed to this release. Thank you to the following contributors:
38+
A total of 3 people contributed to this release. Thank you to the following contributors:
3839

3940
- Athan Reines
4041
- Muhammad Haris
42+
- Philipp Burckhardt
4143

4244
</section>
4345

CONTRIBUTORS

+14
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
#
33
# Contributors listed in alphabetical order.
44

5+
Aayush Khanna <aayushiitbhu23@gmail.com>
6+
AbhijitRaut04 <121740684+AbhijitRaut04@users.noreply.github.com>
57
Adarsh Palaskar <adarshpalaskar99@gmail.com>
68
Aditya Sapra <adityaework@gmail.com>
79
AgPriyanshu18 <113460573+AgPriyanshu18@users.noreply.github.com>
@@ -20,12 +22,15 @@ Christopher Dambamuromo <chridam@gmail.com>
2022
Dan Rose <danoftheroses@gmail.com>
2123
Daniel Killenberger <daniel.killenberger@gmail.com>
2224
Daniel Yu <40680511+Daniel777y@users.noreply.github.com>
25+
Debashis Maharana <debashismaharana7854@gmail.com>
26+
Dominic Lim <46486515+domlimm@users.noreply.github.com>
2327
Dominik Moritz <domoritz@gmail.com>
2428
Dorrin Sotoudeh <dorrinsotoudeh123@gmail.com>
2529
EuniceSim142 <77243938+EuniceSim142@users.noreply.github.com>
2630
Frank Kovacs <fran70kk@gmail.com>
2731
Golden Kumar <103646877+AuenKr@users.noreply.github.com>
2832
Gunj Joshi <gunjjoshi8372@gmail.com>
33+
Gururaj Gurram <143020143+gururaj1512@users.noreply.github.com>
2934
HarshaNP <96897754+GittyHarsha@users.noreply.github.com>
3035
Harshita Kalani <harshitakalani02@gmail.com>
3136
Hridyanshu <124202756+HRIDYANSHU054@users.noreply.github.com>
@@ -39,8 +44,10 @@ Joey Reed <joeyrreed@gmail.com>
3944
Jordan Gallivan <115050475+Jordan-Gallivan@users.noreply.github.com>
4045
Joris Labie <joris.labie1@gmail.com>
4146
Justin Dennison <justin1dennison@gmail.com>
47+
Kaif Mohd <mdkaifprofession@gmail.com>
4248
Karthik Prakash <116057817+skoriop@users.noreply.github.com>
4349
Khaldon <kahmd1444@gmail.com>
50+
Kohantika Nath <145763549+kohantikanath@users.noreply.github.com>
4451
Krishnendu Das <86651039+itskdhere@users.noreply.github.com>
4552
Lovelin <100030865+lovelindhoni@users.noreply.github.com>
4653
Manik Sharma <maniksharma.rke@gmail.com>
@@ -52,6 +59,7 @@ Mohammad Kaif <98884589+Kaif987@users.noreply.github.com>
5259
Momtchil Momtchev <momtchil@momtchev.com>
5360
Muhammad Haris <harriskhan047@outlook.com>
5461
Naresh Jagadeesan <naresh.naresh000@gmail.com>
62+
Neeraj Pathak <neerajrpathak710@gmail.com>
5563
NightKnight <Ahmedatwa866@yahoo.com>
5664
Nithin Katta <88046362+nithinkatta@users.noreply.github.com>
5765
Nourhan Hasan <109472010+TheNourhan@users.noreply.github.com>
@@ -62,18 +70,22 @@ Prajwal Kulkarni <prajwalkulkarni76@gmail.com>
6270
Pranav Goswami <goswami.4@iitj.ac.in>
6371
Praneki <97080887+PraneGIT@users.noreply.github.com>
6472
Pratik <97464067+Pratik772846@users.noreply.github.com>
73+
Pratyush Kumar Chouhan <pratyushkumar0308@gmail.com>
6574
Priyansh <88396544+itsspriyansh@users.noreply.github.com>
6675
Pushpendra Chandravanshi <pushpendrachandravanshi4@gmail.com>
76+
RISHAV <115060907+rishav2404@users.noreply.github.com>
6777
Raunak Kumar Gupta <raunakmodanwal321@gmail.com>
6878
Rejoan Sardar <119718513+Rejoan-Sardar@users.noreply.github.com>
6979
Ricky Reusser <rsreusser@gmail.com>
7080
Ridam Garg <67867319+RidamGarg@users.noreply.github.com>
7181
Robert Gislason <gztown2216@yahoo.com>
7282
Roman Stetsyk <25715951+romanstetsyk@users.noreply.github.com>
7383
Rutam <138517416+performant23@users.noreply.github.com>
84+
Ruthwik Chikoti <145591715+ruthwikchikoti@users.noreply.github.com>
7485
Ryan Seal <splrk@users.noreply.github.com>
7586
Sai Srikar Dumpeti <80447788+the-r3aper7@users.noreply.github.com>
7687
SarthakPaandey <145528240+SarthakPaandey@users.noreply.github.com>
88+
Saurabh Singh <saurabhsraghuvanshi@gmail.com>
7789
Seyyed Parsa Neshaei <spneshaei@users.noreply.github.com>
7890
Shashank Shekhar Singh <shashankshekharsingh1205@gmail.com>
7991
Shivam <11shivam00@gmail.com>
@@ -91,12 +103,14 @@ Tudor Pagu <104032457+tudor-pagu@users.noreply.github.com>
91103
Tufailahmed Bargir <142114244+Tufailahmed-Bargir@users.noreply.github.com>
92104
Utkarsh <http://utkarsh11105@gmail.com>
93105
Utkarsh Raj <rajutkarsh2505@gmail.com>
106+
UtkershBasnet <119008923+UtkershBasnet@users.noreply.github.com>
94107
Vaibhav Patel <98279986+noobCoderVP@users.noreply.github.com>
95108
Varad Gupta <varadgupta21@gmail.com>
96109
Xiaochuan Ye <tap91624@gmail.com>
97110
Yernar Yergaziyev <yernar.yergaziyev@erg.kz>
98111
naveen <stupiddint@gmail.com>
99112
nishant-s7 <97207366+nishant-s7@users.noreply.github.com>
113+
olenkabilonizhka <62379231+olenkabilonizhka@users.noreply.github.com>
100114
orimiles5 <97595296+orimiles5@users.noreply.github.com>
101115
rainn <88160429+AmCodesLame@users.noreply.github.com>
102116
rei2hu <reimu@reimu.ws>

benchmark/benchmark.1d_rowmajor.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ var isnan = require( '@stdlib/math-base-assert-is-nan' );
2525
var pow = require( '@stdlib/math-base-special-pow' );
2626
var discreteUniform = require( '@stdlib/random-array-discrete-uniform' );
2727
var shape2strides = require( '@stdlib/ndarray-base-shape2strides' );
28-
var pkg = require( '@stdlib/ndarray-base-fill-package.json' ).name;
29-
var fill = require( '@stdlib/ndarray-base-fill-lib' );
28+
var pkg = require( './../package.json' ).name;
29+
var fill = require( './../lib' );
3030

3131

3232
// VARIABLES //

benchmark/benchmark.5d_columnmajor.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ var pow = require( '@stdlib/math-base-special-pow' );
2727
var floor = require( '@stdlib/math-base-special-floor' );
2828
var filledarrayBy = require( '@stdlib/array-filled-by' );
2929
var shape2strides = require( '@stdlib/ndarray-base-shape2strides' );
30-
var pkg = require( '@stdlib/ndarray-base-fill-package.json' ).name;
31-
var fill = require( '@stdlib/ndarray-base-fill-lib' );
30+
var pkg = require( './../package.json' ).name;
31+
var fill = require( './../lib' );
3232

3333

3434
// VARIABLES //

package.json

+1-3
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"@stdlib/ndarray-base-dtype": "^0.2.2",
4343
"@stdlib/ndarray-base-order": "^0.2.2",
4444
"@stdlib/ndarray-base-shape": "^0.2.2",
45-
"@stdlib/types": "^0.4.1"
45+
"@stdlib/types": "^0.4.3"
4646
},
4747
"devDependencies": {
4848
"@stdlib/array-complex128": "^0.3.0",
@@ -58,8 +58,6 @@
5858
"@stdlib/math-base-special-floor": "^0.2.3",
5959
"@stdlib/math-base-special-pow": "^0.3.0",
6060
"@stdlib/math-base-special-sqrt": "^0.2.2",
61-
"@stdlib/ndarray-base-fill-lib": "github:stdlib-js/ndarray-base-fill-lib#main",
62-
"@stdlib/ndarray-base-fill-package.json": "github:stdlib-js/ndarray-base-fill-package.json#main",
6361
"@stdlib/ndarray-base-numel": "^0.2.2",
6462
"@stdlib/ndarray-base-shape2strides": "^0.2.2",
6563
"@stdlib/ndarray-base-strides2offset": "^0.2.2",

0 commit comments

Comments
 (0)