-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #66 from unifyai/ci-testing
Integrating Demos Tests in the CI
- Loading branch information
Showing
21 changed files
with
119,237 additions
and
205 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: test-basics | ||
on: [workflow_call, workflow_dispatch] | ||
|
||
jobs: | ||
cpu: | ||
runs-on: ubuntu-latest #ToDo: ${{ needs.build.outputs.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
mods: [01_write_ivy_code, 02_unify_code, 03_trace_code, 04_transpile_code, 05_lazy_vs_eager, | ||
06_how_to_use_decorators, 07_transpile_any_library, 08_transpile_any_model, | ||
09_write_a_model_using_ivy] | ||
|
||
steps: | ||
- name: Checkout Demos🛎 | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: unifyai/demos | ||
path: demos | ||
persist-credentials: false | ||
submodules: "recursive" | ||
fetch-depth: 1 | ||
|
||
- name: Run Integration testing for Basic Demos | ||
id: tests | ||
run: | | ||
cd demos | ||
docker run -v "$(pwd)":/ivy/demos unifyai/ivy:latest demos/tests/test_demos.sh ${{ secrets.USER_API_KEY }} learn_the_basics/${{ matrix.mods }}.ipynb |
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,29 @@ | ||
name: test-examples | ||
on: [workflow_call, workflow_dispatch] | ||
|
||
jobs: | ||
gpu: | ||
runs-on: self-hosted #ToDo: ${{ needs.build.outputs.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
modules: [alexnet_demo, bert_demo, image_segmentation_with_ivy_unet, mmpretrain_to_jax, resnet_demo, torch_to_jax] | ||
|
||
steps: | ||
- name: Clean repository | ||
run: | ||
sudo rm -fr $GITHUB_WORKSPACE && mkdir $GITHUB_WORKSPACE | ||
|
||
- name: Checkout Demos🛎 | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: unifyai/demos | ||
path: demos | ||
persist-credentials: false | ||
submodules: "recursive" | ||
fetch-depth: 1 | ||
|
||
- name: Run Integration Tests for Enterprise Demos | ||
run: | | ||
cd demos | ||
docker run --gpus all -v "$(pwd)":/ivy/demos unifyai/ivy:latest-gpu demos/tests/test_demos.sh ${{ secrets.USER_API_KEY }} examples_and_demos/${{ matrix.modules }}.ipynb |
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,6 +1,7 @@ | ||
.vscode | ||
.idea/* | ||
**/.ipynb_checkpoints/* | ||
__pycache__/ | ||
**pem** | ||
**fn_path_cache** | ||
*.DS_Store | ||
|
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 @@ | ||
repos: | ||
- repo: https://github.com/psf/black | ||
rev: 23.3.0 | ||
hooks: | ||
- id: black | ||
language_version: python3 | ||
args: | ||
- "--preview" | ||
- repo: https://github.com/PyCQA/autoflake | ||
rev: v2.1.1 | ||
hooks: | ||
- id: autoflake | ||
- repo: https://github.com/pycqa/flake8 | ||
rev: 6.0.0 | ||
hooks: | ||
- id: flake8 | ||
exclude: ^.*__init__.py$ | ||
- repo: https://github.com/PyCQA/docformatter | ||
rev: v1.6.3 | ||
hooks: | ||
- id: docformatter | ||
- repo: https://github.com/pycqa/pydocstyle | ||
rev: 6.3.0 | ||
hooks: | ||
- id: pydocstyle | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.