Skip to content

Commit

Permalink
Auto-generated commit
Browse files Browse the repository at this point in the history
  • Loading branch information
stdlib-bot committed Nov 19, 2021
1 parent 330a90e commit 7985fc3
Show file tree
Hide file tree
Showing 7 changed files with 64 additions and 6 deletions.
4 changes: 4 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ indent_style = tab
indent_style = space
indent_size = 2

# Set properties for `cli_opts.json` files:
[cli_opts.json]
indent_style = tab

# Set properties for TypeScript files:
[*.ts]
indent_style = tab
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
timeout-minutes: 5
- name: Replace all GitHub links to individual packages with npm links
run: |
find . -type f -name '*.md' -print0 | xargs -0 sed -Ei 's/@stdlib\/([^:]*)\]: https:\/\/github.com\/stdlib-js/@stdlib\/\1\]: https:\/\/www.npmjs.com\/package\/@stdlib/g'
find . -type f -name '*.md' -print0 | xargs -0 sed -Ei '/tree\/main/b; s/@stdlib\/([^:]*)\]: https:\/\/github.com\/stdlib-js/@stdlib\/\1\]: https:\/\/www.npmjs.com\/package\/@stdlib/g'
- name: Replace all stdlib GitHub dependencies with the respective npm packages
run: |
find package.json -type f -print0 | xargs -0 sed -Ei 's/"github:stdlib-js[^"]*"/"^0.0.x"/g'
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,17 @@ jobs:
run: |
npm install || npm install || npm install
timeout-minutes: 15
- name: Build native add-on (if present)
run: |
if [ -f "binding.gyp" ]; then
npm install node-gyp --no-save && ./node_modules/.bin/node-gyp rebuild
fi
- name: Run tests
id: tests
run: |
npm test || npm test || npm test
- uses: act10ns/slack@v1
- name: Send status to Slack channel in case of failure
uses: act10ns/slack@v1
with:
status: ${{ job.status }}
steps: ${{ toJson(steps) }}
Expand Down
19 changes: 18 additions & 1 deletion .github/workflows/test_coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,20 +40,37 @@ jobs:
run: |
npm install || npm install || npm install
timeout-minutes: 15
- name: Build native add-on (if present)
run: |
if [ -f "binding.gyp" ]; then
npm install node-gyp --no-save && ./node_modules/.bin/node-gyp rebuild
fi
- name: Calculate test coverage
run: |
npm run test-cov || npm run test-cov || npm run test-cov
timeout-minutes: 15
- name: Upload coverage to Codecov
id: upload
uses: codecov/codecov-action@v1
uses: codecov/codecov-action@v2
with:
directory: reports/coverage
flags: unittests
fail_ci_if_error: true
- name: Extract coverage value and assign to output
id: extract-coverage
run: |
coverage=`cat reports/coverage/lcov-report/index.html | grep "fraction" | grep -oP '\d+/\d+' | printf %s "$(cat)" | jq -R -s -c 'split("\n")'`
echo "::set-output name=coverage::$coverage"
- uses: act10ns/slack@v1
with:
status: ${{ job.status }}
steps: ${{ toJson(steps) }}
channel: '#npm-ci'
if: failure()
- name: Send Webhook with status to stdlib backend
uses: distributhor/workflow-webhook@v2
env:
webhook_url: ${{ secrets.STDLIB_COVERAGE_URL }}
webhook_secret: ${{ secrets.STDLIB_WEBHOOK_SECRET }}
data: '${{ steps.extract-coverage.outputs.coverage }}'
if: ${{ false }}
6 changes: 4 additions & 2 deletions .github/workflows/test_install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,15 @@ on:
workflow_run:
workflows: ["Publish Package"]
types: [completed]
workflow_dispatch:

# Workflow jobs:
jobs:
on-success:
runs-on: ubuntu-latest
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
if: ${{ github.event.workflow_run.conclusion == 'success' }}
if: ${{ github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch' }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
Expand All @@ -45,7 +46,8 @@ jobs:
run: |
npm install --only=prod || npm install --only=prod || npm install --only=prod
timeout-minutes: 15
- uses: act10ns/slack@v1
- name: Send notification to Slack in case of failure
uses: act10ns/slack@v1
with:
status: ${{ job.status }}
steps: ${{ toJson(steps) }}
Expand Down
1 change: 1 addition & 0 deletions CONTRIBUTORS
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Justin Dennison <[email protected]>
Marcus <[email protected]>
Matt Cochrane <[email protected]>
Milan Raj <[email protected]>
Momtchil Momtchev <[email protected]>
Ognjen Jevremović <[email protected]>
Philipp Burckhardt <[email protected]>
Ricky Reusser <[email protected]>
Expand Down
30 changes: 29 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ limitations under the License.

# iterHavercos

[![NPM version][npm-image]][npm-url] [![Build Status][test-image]][test-url] [![Coverage Status][coverage-image]][coverage-url] [![dependencies][dependencies-image]][dependencies-url]
[![NPM version][npm-image]][npm-url] [![Build Status][test-image]][test-url] [![Coverage Status][coverage-image]][coverage-url] <!-- [![dependencies][dependencies-image]][dependencies-url] -->

> Create an [iterator][mdn-iterator-protocol] which computes the [half-value versed cosine][@stdlib/math/base/special/havercos] for each iterated value.
Expand Down Expand Up @@ -137,6 +137,22 @@ while ( true ) {

<!-- /.references -->

<!-- Section for related `stdlib` packages. Do not manually edit this section, as it is automatically populated. -->

<section class="related">

* * *

## See Also

- <span class="package-name">[`@stdlib/math/base/special/havercos`][@stdlib/math/base/special/havercos]</span><span class="delimiter">: </span><span class="description">compute the half-value versed cosine.</span>
- <span class="package-name">[`@stdlib/math/iter/special/haversin`][@stdlib/math/iter/special/haversin]</span><span class="delimiter">: </span><span class="description">create an iterator which computes the half-value versed sine for each iterated value.</span>
- <span class="package-name">[`@stdlib/math/iter/special/vercos`][@stdlib/math/iter/special/vercos]</span><span class="delimiter">: </span><span class="description">create an iterator which computes the versed cosine for each iterated value.</span>

</section>

<!-- /.related -->

<!-- Section for all links. Make sure to keep an empty line after the `section` element and another before the `/section` close. -->


Expand Down Expand Up @@ -182,9 +198,13 @@ Copyright &copy; 2016-2021. The Stdlib [Authors][stdlib-authors].
[coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/math-iter-special-havercos/main.svg
[coverage-url]: https://codecov.io/github/stdlib-js/math-iter-special-havercos?branch=main

<!--
[dependencies-image]: https://img.shields.io/david/stdlib-js/math-iter-special-havercos.svg
[dependencies-url]: https://david-dm.org/stdlib-js/math-iter-special-havercos/main
-->

[chat-image]: https://img.shields.io/gitter/room/stdlib-js/stdlib.svg
[chat-url]: https://gitter.im/stdlib-js/stdlib/

Expand All @@ -196,8 +216,16 @@ Copyright &copy; 2016-2021. The Stdlib [Authors][stdlib-authors].

[mdn-iterator-protocol]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols#The_iterator_protocol

<!-- <related-links> -->

[@stdlib/math/base/special/havercos]: https://github.com/stdlib-js/math-base-special-havercos

[@stdlib/math/iter/special/haversin]: https://github.com/stdlib-js/math-iter-special-haversin

[@stdlib/math/iter/special/vercos]: https://github.com/stdlib-js/math-iter-special-vercos

<!-- </related-links> -->

</section>

<!-- /.links -->

0 comments on commit 7985fc3

Please sign in to comment.