diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug-report.md similarity index 59% rename from .github/ISSUE_TEMPLATE/bug_report.md rename to .github/ISSUE_TEMPLATE/bug-report.md index 9a43c912..e63fa276 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug-report.md @@ -1,23 +1,35 @@ --- name: Bug report about: Create a report to help us improve -title: '' +title: 'bug: ' labels: bug assignees: '' --- -**Describe the bug** +- [ ] I have looked for existing issues (including closed) about this + +## Bug Report +<!-- A clear and concise description of what the bug is. +---> -**To Reproduce** +## Reproduction +<!-- Code snippet. +---> -**Expected behavior** +## Expected behavior +<!-- A clear and concise description of what you expected to happen. +---> -**Screenshots** +## Screenshots +<!-- If applicable, add screenshots to help explain your problem. +---> -**Additional context** +## Additional context +<!-- Add any other context about the problem here. +---> diff --git a/.github/ISSUE_TEMPLATE/feature-or-improvement-request.md b/.github/ISSUE_TEMPLATE/feature-or-improvement-request.md index 56c39133..3ea507d1 100644 --- a/.github/ISSUE_TEMPLATE/feature-or-improvement-request.md +++ b/.github/ISSUE_TEMPLATE/feature-or-improvement-request.md @@ -1,8 +1,8 @@ --- name: Feature or improvement request about: Suggest an idea for this project -title: '' -labels: '' +title: 'feat: <title>' +labels: feat assignees: '' --- diff --git a/.github/PULL_REQUEST_TEMPLATE/new-model-provider.md b/.github/PULL_REQUEST_TEMPLATE/new-model-provider.md new file mode 100644 index 00000000..60384b48 --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE/new-model-provider.md @@ -0,0 +1,37 @@ +--- +name: New model provider +about: Suggest a new model provider to integrate +title: 'feat: Add support for X' +labels: feat, model +assignees: '' + +--- + +# New model provider: <Model Provider Name> + +## Description + +Please describe the model provider you are adding to the project. Include links to their website and their api documentation. + +Fixes # (issue) + +## Testing + +Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce your results. + +- [ ] Test A +- [ ] Test B + +## Checklist: + +- [ ] My code follows the style guidelines of this project +- [ ] I have commented my code, particularly in hard-to-understand areas +- [ ] I have made corresponding changes to the documentation +- [ ] My changes generate no new warnings +- [ ] I have added tests that prove my fix is effective or that my feature works +- [ ] New and existing unit tests pass locally with my changes +- [ ] I've reviewed the provider API documentation and implemented the types of response accurately + +## Notes + +Any notes you wish to include about the nature of this PR (implementation details, specific questions, etc.) diff --git a/.github/PULL_REQUEST_TEMPLATE/new-vector-store.md b/.github/PULL_REQUEST_TEMPLATE/new-vector-store.md new file mode 100644 index 00000000..b1ab9c7f --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE/new-vector-store.md @@ -0,0 +1,39 @@ +--- +name: Vector store integration request +about: Suggest a new vector store to integrate +title: 'feat: Add support for X vector store' +labels: data store, feat +assignees: '' + +--- + +# New vector store: <Vector Store Name> + +## Description + +Please describe the vector store you are adding to the project. Include links to their website and their api documentation. + +Fixes # (issue) + +## Testing + +Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce your results. + +- [ ] Test A +- [ ] Test B + +## Checklist: + +- [ ] My code follows the style guidelines of this project +- [ ] I have performed a self-review of my own code +- [ ] I have commented my code, particularly in hard-to-understand areas +- [ ] I have made corresponding changes to the documentation +- [ ] My changes generate no new warnings +- [ ] I have added tests that prove my fix is effective or that my feature works +- [ ] New and existing unit tests pass locally with my changes +- [ ] Any dependent changes have been merged and published in downstream modules +- [ ] I've reviewed the vector store API documentation and implemented the types of response accurately + +## Notes + +Any notes you wish to include about the nature of this PR (implementation details, specific questions, etc.) diff --git a/.github/PULL_REQUEST_TEMPLATE/other.md b/.github/PULL_REQUEST_TEMPLATE/other.md new file mode 100644 index 00000000..d7e34a90 --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE/other.md @@ -0,0 +1,45 @@ +--- +name: General pull request +about: Makes a change to the code base +title: '' +labels: '' +assignees: '' + +--- + +# <Pull Request Title> + +## Description + +Please include a summary of the changes and the related issue. Please also include relevant motivation and context. List any dependencies that are required for this change. + +Fixes # (issue) + +## Type of change + +Please delete options that are not relevant. + +- [ ] Bug fix +- [ ] New feature +- [ ] Breaking change +- [ ] Documentation update + +## Testing + +Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce your results. + +- [ ] Test A +- [ ] Test B + +## Checklist: + +- [ ] My code follows the style guidelines of this project +- [ ] I have commented my code, particularly in hard-to-understand areas +- [ ] I have made corresponding changes to the documentation +- [ ] My changes generate no new warnings +- [ ] I have added tests that prove my fix is effective or that my feature works +- [ ] New and existing unit tests pass locally with my changes + +## Notes + +Any notes you wish to include about the nature of this PR (implementation details, specific questions, etc.) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 584532ca..f6e22f50 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -54,3 +54,24 @@ jobs: - name: Run clippy action uses: clechasseur/rs-clippy-check@v3 + + test: + name: stable / test + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Install Rust stable + uses: actions-rust-lang/setup-rust-toolchain@v1 + + - name: Install nextest + uses: taiki-e/install-action@v2 + with: + tool: nextest + + - name: Test with latest nextest release + uses: actions-rs/cargo@v1 + with: + command: nextest + args: run --all-features \ No newline at end of file diff --git a/rig-core/Cargo.toml b/rig-core/Cargo.toml index 28561465..f0b2182b 100644 --- a/rig-core/Cargo.toml +++ b/rig-core/Cargo.toml @@ -8,8 +8,9 @@ description = "An opinionated library for building LLM powered applications." repository = "https://github.com/0xPlaygrounds/rig" [lib] -name="rig" -path="src/lib.rs" +name = "rig" +path = "src/lib.rs" +doctest = false # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html