forked from ivy-llc/ivy
-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (50 loc) · 1.48 KB
/
array-api-intelligent-tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: array-api-intelligent-tests
on:
workflow_dispatch:
push:
branches:
- 'main'
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: Get Job URL
uses: Tiryoh/gha-jobid-action@v0
id: jobs
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
job_name: ${{ github.job }}
- name: Update Mapping and Determine Tests
env:
SSH_DEPLOY_KEY: ${{ secrets.SSH_DEPLOY_KEY }}
run: |
source ./ivy/clone_mapping.sh main
pip install pydriller pymongo
cp Mapping/tests.pbz2 ivy/
cd ivy
python run_tests_CLI/array_api_determine_tests.py
cd ..
cp ivy/tests.pbz2 Mapping/
cd Mapping
git add .
git commit -m "Update Mapping"
git push origin main
continue-on-error: true
- name: Run Tests
id: tests
run: |
cd ivy
python run_tests_CLI/array_api_run_tests.py ${{ secrets.REDIS_CONNECTION_URL }} ${{ secrets.REDIS_PASSWORD }} ${{ secrets.MONGODB_PASSWORD }} ${{ github.run_id }} ${{ steps.jobs.outputs.html_url }}
continue-on-error: true
- name: Check on failures
if: steps.tests.outcome != 'success'
run: exit 1