Generate Integration Tests #624
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
# YAML schema for GitHub Actions: | |
# https://help.github.com/en/actions/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions | |
# | |
# Helpful YAML parser to clarify YAML syntax: | |
# https://yaml-online-parser.appspot.com/ | |
name: Generate Integration Tests | |
# https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#onschedule | |
on: | |
schedule: | |
- cron: '0 4 * * *' | |
# Allow manually triggering of the workflow. | |
workflow_dispatch: {} | |
jobs: | |
generate_integration_tests: | |
runs-on: ubuntu-latest | |
if: | | |
github.event_name == 'workflow_dispatch' || | |
(github.event_name == 'schedule' && github.repository == 'tensorflow/tflite-micro') | |
name: Generate Integration Tests | |
steps: | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- uses: actions/checkout@v2 | |
- name: Install dependencies | |
run: | | |
pip3 install Pillow | |
pip3 install Wave | |
pip3 install numpy | |
- name: Test | |
run: | | |
tensorflow/lite/micro/tools/ci_build/test_generate_integration_tests.sh | |
issue-on-error: | |
needs: [generate_integration_tests] | |
if: ${{ always() && contains(needs.*.result, 'failure') }} | |
uses: ./.github/workflows/issue_on_error.yml | |
with: | |
repo: ${{ github.repository }} | |
workflow: ${{ github.workflow }} | |
run_id: ${{ github.run_id }} | |
run_number: ${{ github.run_number }} | |
flag_label: ci:bot_issue | |
secrets: | |
token: ${{ secrets.GITHUB_TOKEN }} | |