Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: added integration tests #4

Merged
merged 4 commits into from
Aug 2, 2023
Merged

test: added integration tests #4

merged 4 commits into from
Aug 2, 2023

Conversation

0xcadams
Copy link
Contributor

@0xcadams 0xcadams commented Aug 2, 2023

Description

Added integration tests to CI.

@vercel
Copy link

vercel bot commented Aug 2, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
hopfield ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 2, 2023 4:50pm

@github-actions
Copy link
Contributor

github-actions bot commented Aug 2, 2023

Size Change: -1.5 kB (-1%)

Total Size: 130 kB

Filename Size Change
dist/cjs/openai/chat/non-streaming-with-functions.js 1.25 kB -26 B (-2%)
dist/cjs/openai/function.benchmark.js 0 B -761 B (removed) 🏆
dist/esm/openai/chat/non-streaming-with-functions.js 1.2 kB -26 B (-2%)
dist/esm/openai/function.benchmark.js 0 B -683 B (removed) 🏆
ℹ️ View Unchanged
Filename Size
dist/cjs/_test/function.js 445 B
dist/cjs/_test/openai-client.js 238 B
dist/cjs/_test/openai-embedding.js 47.1 kB
dist/cjs/_test/openai-non-streaming.js 1.86 kB
dist/cjs/_test/openai-streaming.js 954 B
dist/cjs/_test/zod.js 536 B
dist/cjs/base.js 166 B
dist/cjs/chat.js 400 B
dist/cjs/embedding.js 353 B
dist/cjs/errors.js 575 B
dist/cjs/external.js 485 B
dist/cjs/function.js 1.86 kB
dist/cjs/index.js 470 B
dist/cjs/openai/chat/non-streaming.js 1.24 kB
dist/cjs/openai/chat/shared.js 1.28 kB
dist/cjs/openai/chat/streaming-with-functions.js 1.36 kB
dist/cjs/openai/chat/streaming.js 1.35 kB
dist/cjs/openai/embedding.js 1.05 kB
dist/cjs/openai/external.js 193 B
dist/cjs/openai/function.js 610 B
dist/cjs/openai/index.js 498 B
dist/cjs/openai/models.js 297 B
dist/cjs/openai/provider.js 604 B
dist/cjs/openai/template.js 383 B
dist/cjs/provider.js 163 B
dist/cjs/template.js 254 B
dist/cjs/type-utils.js 127 B
dist/cjs/types.js 124 B
dist/cjs/utils.js 225 B
dist/cjs/version.js 148 B
dist/esm/_test/function.js 369 B
dist/esm/_test/openai-client.js 170 B
dist/esm/_test/openai-embedding.js 47 kB
dist/esm/_test/openai-non-streaming.js 1.78 kB
dist/esm/_test/openai-streaming.js 874 B
dist/esm/_test/zod.js 462 B
dist/esm/base.js 87 B
dist/esm/chat.js 336 B
dist/esm/embedding.js 301 B
dist/esm/errors.js 523 B
dist/esm/external.js 135 B
dist/esm/function.js 1.78 kB
dist/esm/index.js 113 B
dist/esm/openai/chat/non-streaming.js 1.16 kB
dist/esm/openai/chat/shared.js 1.17 kB
dist/esm/openai/chat/streaming-with-functions.js 1.32 kB
dist/esm/openai/chat/streaming.js 1.25 kB
dist/esm/openai/embedding.js 999 B
dist/esm/openai/external.js 130 B
dist/esm/openai/function.js 550 B
dist/esm/openai/index.js 114 B
dist/esm/openai/models.js 220 B
dist/esm/openai/provider.js 531 B
dist/esm/openai/template.js 308 B
dist/esm/provider.js 86 B
dist/esm/template.js 206 B
dist/esm/type-utils.js 91 B
dist/esm/types.js 64 B
dist/esm/utils.js 155 B
dist/esm/version.js 82 B

compressed-size-action

@codecov
Copy link

codecov bot commented Aug 2, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: +8.04% 🎉

Comparison is base (31d587d) 91.04% compared to head (5e8f204) 99.09%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main       #4      +/-   ##
==========================================
+ Coverage   91.04%   99.09%   +8.04%     
==========================================
  Files          25       31       +6     
  Lines        5496     6605    +1109     
  Branches       88      154      +66     
==========================================
+ Hits         5004     6545    +1541     
+ Misses        492       60     -432     
Files Changed Coverage Δ
src/openai/chat/non-streaming-with-functions.ts 93.80% <ø> (+33.27%) ⬆️
src/openai/chat/non-streaming.integration.ts 100.00% <100.00%> (ø)
src/openai/chat/streaming.integration.ts 100.00% <100.00%> (ø)
src/openai/embedding.integration.ts 100.00% <100.00%> (ø)
src/openai/function.integration.ts 100.00% <100.00%> (ø)

... and 9 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@0xcadams 0xcadams merged commit d2a02c9 into main Aug 2, 2023
11 checks passed
@0xcadams 0xcadams deleted the 0xcadams/further branch August 2, 2023 16:53
@github-actions github-actions bot mentioned this pull request Aug 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant