refactor: Refactoring for efficiency and better readability #25757
Workflow file for this run
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
name: array-api-intelligent-tests-pr | |
on: | |
pull_request: | |
types: [ labeled, opened, synchronize, reopened, review_requested ] | |
permissions: | |
actions: read | |
jobs: | |
run_tests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Ivy 🛎 | |
uses: actions/checkout@v2 | |
with: | |
path: ivy | |
persist-credentials: false | |
submodules: "recursive" | |
fetch-depth: 100 | |
- name: Determine Tests | |
run: | | |
git clone -b main https://github.com/unifyai/Mapping.git --depth 1 | |
pip install pydriller | |
cp Mapping/tests.pbz2 ivy/ | |
cd ivy | |
python scripts/determine_tests/array_api_determine_tests.py | |
continue-on-error: true | |
- name: Run Tests | |
id: tests | |
run: | | |
cd ivy | |
python scripts/run_tests/array_api_run_tests_pr.py | |
continue-on-error: true | |
- name: Check on failures | |
if: steps.tests.outcome != 'success' | |
run: exit 1 |