forked from ivy-llc/ivy
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (42 loc) · 1.28 KB
/
test-ivy-cron.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
name: test-ivy-cron
on:
workflow_dispatch:
schedule:
- cron: '30 * * * *'
permissions:
actions: read
jobs:
run-nightly-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️Ivy
uses: actions/checkout@v2
with:
path: ivy
persist-credentials: false
submodules: "recursive"
- name: Install ivy and fetch binaries
run: |
cd ivy
pip3 install -e .
mkdir .ivy
touch .ivy/key.pem
echo -n ${{ secrets.USER_API_KEY }} > .ivy/key.pem
cd ..
- name: Get Job URL
uses: Tiryoh/gha-jobid-action@v0
id: jobs
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
job_name: ${{ github.job }}
- name: Run Tests
id: tests
run: |
cd ivy
pip3 install pymongo
python scripts/setup_tests/cron_tests.py ${{ github.run_number }}
python scripts/run_tests/run_tests.py ${{ secrets.REDIS_CONNECTION_URL }} ${{ secrets.REDIS_PASSWORD }} ${{ secrets.MONGODB_PASSWORD }} 'false' 'false' ${{ github.run_id }} 'false' ${{ steps.jobs.outputs.html_url }}
continue-on-error: true
- name: Check on failures
if: steps.tests.outcome != 'success'
run: exit 1