-
Notifications
You must be signed in to change notification settings - Fork 5.7k
44 lines (41 loc) · 1.19 KB
/
array-api-det-coverage.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
name: array-api-determine-test-coverage
on:
workflow_dispatch:
# schedule:
# - cron: "30 20 * * 6"
permissions:
actions: read
jobs:
determine_coverage:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
branch: [ 1, 2, 3, 4 ]
steps:
- name: Checkout Ivy 🛎
uses: actions/checkout@v2
with:
path: ivy
persist-credentials: false
submodules: "recursive"
fetch-depth: 150
- name: Determine Test Coverage
run: |
pip install pydriller tqdm
cd ivy
python scripts/determine_tests/array_api_det_coverage.py ${{ matrix.branch }}
cd ..
mkdir tests
cp ivy/tests.pbz2 tests/
- name: Push Mapping
uses: cpina/github-action-push-to-another-repository@main
env:
SSH_DEPLOY_KEY: ${{ secrets.SSH_DEPLOY_KEY }}
with:
source-directory: tests/
destination-github-username: 'unifyai'
destination-repository-name: 'Mapping'
user-email: [email protected]
commit-message: Update Array API Tests Mapping
target-branch: main${{ matrix.branch }}