Read AI advisor verdicts from CH and use in autorevert decisions #254
This file contains hidden or 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 pytorch-auto-revert lambda | |
| on: | |
| pull_request: | |
| paths: | |
| - .github/workflows/pytorch-auto-revert-tests.yml | |
| - aws/lambda/pytorch-auto-revert/** | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - .github/workflows/pytorch-auto-revert-tests.yml | |
| - aws/lambda/pytorch-auto-revert/** | |
| defaults: | |
| run: | |
| working-directory: aws/lambda/pytorch-auto-revert/ | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| - uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0 | |
| with: | |
| python-version: '3.11' | |
| cache: pip | |
| - name: Install virtualenv | |
| run: pip install virtualenv==20.34.0 | |
| - name: Run autorevert tests | |
| env: | |
| # GitHub provides this automatically; used by workflow_resolver tests | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: | | |
| make test |