forked from ivy-llc/ivy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: new Test Dashboard workflow (ivy-llc#28750)
- Loading branch information
1 parent
ff5bfce
commit 49e4081
Showing
17 changed files
with
679 additions
and
1 deletion.
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,371 @@ | ||
# Workflow to run all the tests for the ivy frontends and functional api, | ||
# and update the remote database with the results | ||
|
||
name: update-test-dashboard | ||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: "0 0 * * *" | ||
permissions: | ||
actions: read | ||
jobs: | ||
update-frontends-torch: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
submodule : [ blas_and_lapack_ops, comparison_ops, creation_ops, dtype, func_wrapper, | ||
indexing_slicing_joining_mutating_ops, linalg, miscellaneous_ops, | ||
pointwise_ops, random_sampling, reduction_ops, special_funcs, | ||
spectral_ops, tensor_functions, tensor, utilities ] | ||
backend : [ jax, numpy, tensorflow, torch ] | ||
steps: | ||
- name: Checkout 🛎️Ivy | ||
uses: actions/checkout@v3 | ||
with: | ||
path: ivy | ||
persist-credentials: false | ||
|
||
- name: Install ivy | ||
run: | | ||
cd ivy | ||
sudo pip3 install -e . | ||
- name: Run Tests | ||
id: tests | ||
run: | | ||
cd ivy | ||
pip3 install pymongo | ||
pip3 install pytest-json-report | ||
docker run --rm -v "$(pwd)":/ivy -v "$(pwd)"/.hypothesis:/.hypothesis unifyai/ivy:latest scripts/update_test_dashboard/update_torch_frontends.sh ${{ matrix.submodule }} ${{ matrix.backend }} https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}/job/${{ github.job }}?check_suite_focus=true ${{ secrets.IVY_DASHBOARD_DB_KEY }} | ||
update-frontends-torch-nn-functional: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
submodule : [ convolution_functions, distance_functions, dropout_functions, layer_functions, | ||
linear_functions, loss_functions, non_linear_activation_functions, norms, | ||
pooling_functions, sparse_functions, vision_functions ] | ||
backend : [ jax, numpy, tensorflow, torch ] | ||
steps: | ||
- name: Checkout 🛎️Ivy | ||
uses: actions/checkout@v3 | ||
with: | ||
path: ivy | ||
persist-credentials: false | ||
|
||
- name: Install ivy | ||
run: | | ||
cd ivy | ||
sudo pip3 install -e . | ||
- name: Run Tests | ||
id: tests | ||
run: | | ||
cd ivy | ||
pip3 install pymongo | ||
pip3 install pytest-json-report | ||
docker run --rm -v "$(pwd)":/ivy -v "$(pwd)"/.hypothesis:/.hypothesis unifyai/ivy:latest scripts/update_test_dashboard/update_torch_nn_functional_frontends.sh ${{ matrix.submodule }} ${{ matrix.backend }} https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}/job/${{ github.job }}?check_suite_focus=true ${{ secrets.IVY_DASHBOARD_DB_KEY }} | ||
update-frontends-tensorflow: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
submodule : [ __operators__, dtypes, func_wrapper, general_functions, linalg, math, nest, nn, | ||
random, raw_ops, signal, tensor, tensorarray, tensorshape ] | ||
backend : [ jax, numpy, tensorflow, torch ] | ||
steps: | ||
- name: Checkout 🛎️Ivy | ||
uses: actions/checkout@v3 | ||
with: | ||
path: ivy | ||
persist-credentials: false | ||
|
||
- name: Install ivy | ||
run: | | ||
cd ivy | ||
sudo pip3 install -e . | ||
- name: Run Tests | ||
id: tests | ||
run: | | ||
cd ivy | ||
pip3 install pymongo | ||
pip3 install pytest-json-report | ||
docker run --rm -v "$(pwd)":/ivy -v "$(pwd)"/.hypothesis:/.hypothesis unifyai/ivy:latest scripts/update_test_dashboard/update_tensorflow_frontends.sh ${{ matrix.submodule }} ${{ matrix.backend }} https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}/job/${{ github.job }}?check_suite_focus=true ${{ secrets.IVY_DASHBOARD_DB_KEY }} | ||
update-frontends-tensorflow-keras: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
submodule : [ activations, backend ] | ||
backend : [ jax, numpy, tensorflow, torch ] | ||
steps: | ||
- name: Checkout 🛎️Ivy | ||
uses: actions/checkout@v3 | ||
with: | ||
path: ivy | ||
persist-credentials: false | ||
|
||
- name: Install ivy | ||
run: | | ||
cd ivy | ||
sudo pip3 install -e . | ||
- name: Run Tests | ||
id: tests | ||
run: | | ||
cd ivy | ||
pip3 install pymongo | ||
pip3 install pytest-json-report | ||
docker run --rm -v "$(pwd)":/ivy -v "$(pwd)"/.hypothesis:/.hypothesis unifyai/ivy:latest scripts/update_test_dashboard/update_tensorflow_keras_frontends.sh ${{ matrix.submodule }} ${{ matrix.backend }} https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}/job/${{ github.job }}?check_suite_focus=true ${{ secrets.IVY_DASHBOARD_DB_KEY }} | ||
update-frontends-jax: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
submodule : [ array, func_wrapper, general_functions, random ] | ||
backend : [ jax, numpy, tensorflow, torch ] | ||
steps: | ||
- name: Checkout 🛎️Ivy | ||
uses: actions/checkout@v3 | ||
with: | ||
path: ivy | ||
persist-credentials: false | ||
|
||
- name: Install ivy | ||
run: | | ||
cd ivy | ||
sudo pip3 install -e . | ||
- name: Run Tests | ||
id: tests | ||
run: | | ||
cd ivy | ||
pip3 install pymongo | ||
pip3 install pytest-json-report | ||
docker run --rm -v "$(pwd)":/ivy -v "$(pwd)"/.hypothesis:/.hypothesis unifyai/ivy:latest scripts/update_test_dashboard/update_jax_frontends.sh ${{ matrix.submodule }} ${{ matrix.backend }} https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}/job/${{ github.job }}?check_suite_focus=true ${{ secrets.IVY_DASHBOARD_DB_KEY }} | ||
update-frontends-jax-lax: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
submodule : [ control_flow_operators, custom_gradient_operators, linalg, operators ] | ||
backend : [ jax, numpy, tensorflow, torch ] | ||
steps: | ||
- name: Checkout 🛎️Ivy | ||
uses: actions/checkout@v3 | ||
with: | ||
path: ivy | ||
persist-credentials: false | ||
|
||
- name: Install ivy | ||
run: | | ||
cd ivy | ||
sudo pip3 install -e . | ||
- name: Run Tests | ||
id: tests | ||
run: | | ||
cd ivy | ||
pip3 install pymongo | ||
pip3 install pytest-json-report | ||
docker run --rm -v "$(pwd)":/ivy -v "$(pwd)"/.hypothesis:/.hypothesis unifyai/ivy:latest scripts/update_test_dashboard/update_jax_lax_frontends.sh ${{ matrix.submodule }} ${{ matrix.backend }} https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}/job/${{ github.job }}?check_suite_focus=true ${{ secrets.IVY_DASHBOARD_DB_KEY }} | ||
update-frontends-jax-nn: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
submodule : [ non_linear_activations ] | ||
backend : [ jax, numpy, tensorflow, torch ] | ||
steps: | ||
- name: Checkout 🛎️Ivy | ||
uses: actions/checkout@v3 | ||
with: | ||
path: ivy | ||
persist-credentials: false | ||
|
||
- name: Install ivy | ||
run: | | ||
cd ivy | ||
sudo pip3 install -e . | ||
- name: Run Tests | ||
id: tests | ||
run: | | ||
cd ivy | ||
pip3 install pymongo | ||
pip3 install pytest-json-report | ||
docker run --rm -v "$(pwd)":/ivy -v "$(pwd)"/.hypothesis:/.hypothesis unifyai/ivy:latest scripts/update_test_dashboard/update_jax_nn_frontends.sh ${{ matrix.submodule }} ${{ matrix.backend }} https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}/job/${{ github.job }}?check_suite_focus=true ${{ secrets.IVY_DASHBOARD_DB_KEY }} | ||
update-frontends-jax-numpy: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
submodule : [ creation, dtype, fft, indexing, linalg, logic, manipulations, | ||
mathematical_functions, searching_sorting, statistical ] | ||
backend : [ jax, numpy, tensorflow, torch ] | ||
steps: | ||
- name: Checkout 🛎️Ivy | ||
uses: actions/checkout@v3 | ||
with: | ||
path: ivy | ||
persist-credentials: false | ||
|
||
- name: Install ivy | ||
run: | | ||
cd ivy | ||
sudo pip3 install -e . | ||
- name: Run Tests | ||
id: tests | ||
run: | | ||
cd ivy | ||
pip3 install pymongo | ||
pip3 install pytest-json-report | ||
docker run --rm -v "$(pwd)":/ivy -v "$(pwd)"/.hypothesis:/.hypothesis unifyai/ivy:latest scripts/update_test_dashboard/update_jax_numpy_frontends.sh ${{ matrix.submodule }} ${{ matrix.backend }} https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}/job/${{ github.job }}?check_suite_focus=true ${{ secrets.IVY_DASHBOARD_DB_KEY }} | ||
update-frontends-numpy: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
submodule : [ broadcast, data_type_routines, fft, indexing_routines, linalg, logic, manipulation_routines, | ||
mathematical_functions, matrix, ndarray, random, sorting_searching_counting, statistics, ufunc ] | ||
backend : [ jax, numpy, tensorflow, torch ] | ||
steps: | ||
- name: Checkout 🛎️Ivy | ||
uses: actions/checkout@v3 | ||
with: | ||
path: ivy | ||
persist-credentials: false | ||
|
||
- name: Install ivy | ||
run: | | ||
cd ivy | ||
sudo pip3 install -e . | ||
- name: Run Tests | ||
id: tests | ||
run: | | ||
cd ivy | ||
pip3 install pymongo | ||
pip3 install pytest-json-report | ||
docker run --rm -v "$(pwd)":/ivy -v "$(pwd)"/.hypothesis:/.hypothesis unifyai/ivy:latest scripts/update_test_dashboard/update_numpy_frontends.sh ${{ matrix.submodule }} ${{ matrix.backend }} https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}/job/${{ github.job }}?check_suite_focus=true ${{ secrets.IVY_DASHBOARD_DB_KEY }} | ||
update-ivy-core: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
submodule : [ creation, device, dtype, elementwise, general, gradients, linalg, manipulation, meta, | ||
nest, random, searching, set, sorting, statistical, utility ] | ||
backend : [ jax, numpy, tensorflow, torch ] | ||
steps: | ||
- name: Checkout 🛎️Ivy | ||
uses: actions/checkout@v3 | ||
with: | ||
path: ivy | ||
persist-credentials: false | ||
|
||
- name: Install ivy | ||
run: | | ||
cd ivy | ||
sudo pip3 install -e . | ||
- name: Run Tests | ||
id: tests | ||
run: | | ||
cd ivy | ||
pip3 install pymongo | ||
pip3 install pytest-json-report | ||
docker run --rm -v "$(pwd)":/ivy -v "$(pwd)"/.hypothesis:/.hypothesis unifyai/ivy:latest scripts/update_test_dashboard/update_ivy_core.sh ${{ matrix.submodule }} ${{ matrix.backend }} https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}/job/${{ github.job }}?check_suite_focus=true ${{ secrets.IVY_DASHBOARD_DB_KEY }} | ||
update-ivy-experimental-core: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
submodule : [ creation, elementwise, general, gradients, linalg, manipulation, | ||
random, searching, sorting, sparse_array, statistical, utility ] | ||
backend : [ jax, numpy, tensorflow, torch ] | ||
steps: | ||
- name: Checkout 🛎️Ivy | ||
uses: actions/checkout@v3 | ||
with: | ||
path: ivy | ||
persist-credentials: false | ||
|
||
- name: Install ivy | ||
run: | | ||
cd ivy | ||
sudo pip3 install -e . | ||
- name: Run Tests | ||
id: tests | ||
run: | | ||
cd ivy | ||
pip3 install pymongo | ||
pip3 install pytest-json-report | ||
docker run --rm -v "$(pwd)":/ivy -v "$(pwd)"/.hypothesis:/.hypothesis unifyai/ivy:latest scripts/update_test_dashboard/update_ivy_experimental_core.sh ${{ matrix.submodule }} ${{ matrix.backend }} https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}/job/${{ github.job }}?check_suite_focus=true ${{ secrets.IVY_DASHBOARD_DB_KEY }} | ||
update-ivy-experimental-nn: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
submodule : [ activations, layers, losses, norms ] | ||
backend : [ jax, numpy, tensorflow, torch ] | ||
steps: | ||
- name: Checkout 🛎️Ivy | ||
uses: actions/checkout@v3 | ||
with: | ||
path: ivy | ||
persist-credentials: false | ||
|
||
- name: Install ivy | ||
run: | | ||
cd ivy | ||
sudo pip3 install -e . | ||
- name: Run Tests | ||
id: tests | ||
run: | | ||
cd ivy | ||
pip3 install pymongo | ||
pip3 install pytest-json-report | ||
docker run --rm -v "$(pwd)":/ivy -v "$(pwd)"/.hypothesis:/.hypothesis unifyai/ivy:latest scripts/update_test_dashboard/update_ivy_experimental_nn.sh ${{ matrix.submodule }} ${{ matrix.backend }} https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}/job/${{ github.job }}?check_suite_focus=true ${{ secrets.IVY_DASHBOARD_DB_KEY }} | ||
update-ivy-nn: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
submodule : [ activations, layers, losses, norms ] | ||
backend : [ jax, numpy, tensorflow, torch ] | ||
steps: | ||
- name: Checkout 🛎️Ivy | ||
uses: actions/checkout@v3 | ||
with: | ||
path: ivy | ||
persist-credentials: false | ||
|
||
- name: Install ivy | ||
run: | | ||
cd ivy | ||
sudo pip3 install -e . | ||
- name: Run Tests | ||
id: tests | ||
run: | | ||
cd ivy | ||
pip3 install pymongo | ||
pip3 install pytest-json-report | ||
docker run --rm -v "$(pwd)":/ivy -v "$(pwd)"/.hypothesis:/.hypothesis unifyai/ivy:latest scripts/update_test_dashboard/update_ivy_nn.sh ${{ matrix.submodule }} ${{ matrix.backend }} https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}/job/${{ github.job }}?check_suite_focus=true ${{ secrets.IVY_DASHBOARD_DB_KEY }} |
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.