test-ivy-cron-multi-version #2051
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: test-ivy-cron-multi-version | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '20 * * * *' | |
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 run_tests_CLI/cron_tests_multi_version.py ${{ github.run_number }} | |
python run_tests.py ${{ secrets.REDIS_CONNECTION_URL }} ${{ secrets.REDIS_PASSWORD }} ${{ secrets.MONGODB_PASSWORD }} 'true' '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 |