initial workflow for updating test results #1
Workflow file for this run
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: update-test-results | |
on: | |
push: | |
workflow_dispatch: | |
schedule: | |
- cron: "0 0 * * *" | |
permissions: | |
actions: read | |
jobs: | |
update-kornia: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
file : [ test_color, test_contrib ] | |
compile : [ F ] # to also run the tests with backend_compilation, change this to: T, F | |
steps: | |
- name: Get Job URL | |
uses: Tiryoh/gha-jobid-action@v0 | |
id: jobs | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
job_name: ${{ github.job }} (${{ matrix.file }}, ${{ matrix.compile }}) | |
per_page: 64 | |
- name: Run Tests | |
id: tests | |
run: | | |
cd ivy | |
pip3 install pymongo | |
pip3 install pytest-json-report | |
echo "html_url: ${{ steps.jobs.outputs.html_url }}" | |
if [ "${{ steps.jobs.outputs.html_url }}" = "null" ]; then | |
docker run --rm -v "$(pwd)":/ivy -v "$(pwd)"/.hypothesis:/.hypothesis transpileai/ivy:latest update_tests.sh kornia ${{ matrix.file }} ${{ matrix.compile }} https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }} ${{ secrets.INTEGRATION_TESTS_DB_KEY }} | |
else | |
docker run --rm -v "$(pwd)":/ivy -v "$(pwd)"/.hypothesis:/.hypothesis transpileai/ivy:latest update_tests.sh kornia ${{ matrix.file }} ${{ matrix.compile }} ${{ steps.jobs.outputs.html_url }} ${{ secrets.INTEGRATION_TESTS_DB_KEY }} | |
fi |