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(ci): integrated tracer tests as a cron job to store the results …
…in a separate field in the database (ivy-llc#27872)
- Loading branch information
1 parent
0676f59
commit 314106b
Showing
9 changed files
with
77 additions
and
14 deletions.
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
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
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
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
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
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
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
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,46 @@ | ||
name: test-ivy-cron | ||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: '15 * * * *' | ||
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 | ||
sudo 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 }} false | ||
python scripts/run_tests/run_tests.py ${{ secrets.REDIS_CONNECTION_URL }} ${{ secrets.REDIS_PASSWORD }} ${{ secrets.MONGODB_PASSWORD }} 'false' 'false' ${{ github.run_id }} 'false' 'true' ${{ steps.jobs.outputs.html_url }} | ||
continue-on-error: true | ||
|
||
- name: Check on failures | ||
if: steps.tests.outcome != 'success' | ||
run: exit 1 |
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