-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
713 changed files
with
94,572 additions
and
70,640 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
|
||
<!-- | ||
This template will help you to have a meaningful PR, please follow it and do not leave it blank. | ||
--> | ||
|
||
# PR Description | ||
|
||
<!-- | ||
If there is no related issue, please add a short description about your PR. | ||
--> | ||
|
||
## Related Issue | ||
|
||
<!-- | ||
Please use this format to link other issues with their numbers: Close #123 | ||
https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword | ||
--> | ||
|
||
Close # | ||
|
||
## Checklist | ||
|
||
- [ ] Did you add a function? | ||
- [ ] Did you add the tests? | ||
- [ ] Did you follow the steps we provided? | ||
|
||
### Socials: | ||
|
||
<!-- | ||
If you have Twitter, please provide it here otherwise just ignore this. | ||
--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,62 @@ | ||
name: Auto Comment | ||
name: Check Semantic and welcome new contributors | ||
|
||
on: | ||
pull_request_target: | ||
types: [opened] | ||
types: | ||
- opened | ||
- edited | ||
- synchronize | ||
- reopened | ||
workflow_call: | ||
|
||
permissions: | ||
pull-requests: write | ||
|
||
jobs: | ||
auto_comment: | ||
semantics: | ||
name: Semantics | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 10 | ||
steps: | ||
- uses: amannn/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
pr-compliance-checks: | ||
name: PR Compliance Checks | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 10 | ||
steps: | ||
- name: Comment | ||
uses: actions/github-script@v6 | ||
- uses: mtfoley/[email protected] | ||
with: | ||
script: | | ||
github.rest.issues.createComment({ | ||
issue_number: context.issue.number, | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
body: `Thanks for contributing to Ivy! 😊👏 | ||
Here are some of the important points from our Contributing Guidelines 📝: | ||
1. Feel free to ignore the \`run_tests (1)\`, \`run_tests (2)\`, … jobs, and only look at the \`display_test_results\` job. 👀 It contains the following two sections: | ||
- **Combined Test Results:** This shows the results of all the ivy tests that ran on the PR. ✔️ | ||
- **New Failures Introduced:** This lists the tests that are passing on main, but fail on the PR Fork. Please try to make sure that there are no such tests. 💪 | ||
2. The \`lint / Check formatting / check-formatting\` tests check for the formatting of your code. 📜 If it fails, please check the exact error message in the logs and fix the same. ⚠️🔧 | ||
3. Finally, the \`test-docstrings / run-docstring-tests\` check for the changes made in docstrings of the functions. This may be skipped, as well. 📚 | ||
Happy coding! 🎉👨💻` | ||
}) | ||
body-auto-close: false | ||
protected-branch-auto-close: false | ||
body-comment: > | ||
## Issue Reference | ||
In order to be considered for merging, the pull request description must refer to a | ||
specific issue number. This is described in our | ||
[contributing guide](https://unify.ai/docs/ivy/overview/contributing/the_basics.html#todo-list-issues) and our PR template. | ||
This check is looking for a phrase similar to: "Fixes #XYZ" or "Resolves #XYZ" where XYZ is the issue | ||
number that this PR is meant to address. | ||
welcome: | ||
name: Welcome | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 10 | ||
needs: semantics | ||
if: github.event.action == 'opened' | ||
steps: | ||
- uses: actions/first-interaction@v1 | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
pr-message: |- | ||
Congrats on making your first Pull Request and thanks for supporting Ivy! 🎉 | ||
Joing the conversation in our [Discord](https://discord.com/invite/sXyFF8tDtm) | ||
Here are some notes to understand our tests: | ||
- We have merged all the tests in one file called \`display_test_results\` job. 👀 It contains the following two sections: | ||
- **Combined Test Results:** This shows the results of all the ivy tests that ran on the PR. ✔️ | ||
- **New Failures Introduced:** This lists the tests that are passing on main, but fail on the PR Fork. | ||
Please try to make sure that there are no such tests. 💪 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Dockerfile Mutiversion Push | ||
|
||
on: | ||
schedule: | ||
- cron: '0 0 * * *' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
|
||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout Ivy 🛎 | ||
uses: actions/checkout@v3 | ||
|
||
- name: Login to Docker Hub | ||
uses: docker/login-action@v2 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
|
||
- name: Build and push Dockerfile | ||
run: | | ||
docker build --progress=plain --no-cache -t unifyai/multiversion:latest -f docker/DockerfileMultiversion . | ||
docker push unifyai/multiversion:latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ jobs: | |
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
- | ||
- | ||
name: Checkout 🛎 Ivy | ||
uses: actions/checkout@v3 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: Synchronize DB | ||
on: | ||
workflow_dispatch: | ||
permissions: | ||
actions: read | ||
jobs: | ||
synchronize-db: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Ivy 🛎 | ||
uses: actions/checkout@v3 | ||
with: | ||
path: ivy | ||
persist-credentials: false | ||
submodules: "recursive" | ||
fetch-depth: 1 | ||
|
||
- name: Synchronize DB | ||
run: | | ||
pip install pymongo | ||
cd ivy | ||
python run_tests_CLI/synchronize_db.py ${{ secrets.MONGODB_PASSWORD }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.