modified: runners/__init__.py #34
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: Example - CI Performance Gates | |
| on: | |
| pull_request: | |
| paths: | |
| - '**.py' | |
| - '.github/workflows/example-ci-gates.yml' | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - '**.py' | |
| jobs: | |
| performance-tests: | |
| runs-on: ubuntu-latest | |
| name: Performance Benchmarks | |
| steps: | |
| - name: 'Checkout code' | |
| uses: actions/checkout@v3 | |
| - name: 'Run performance tests' | |
| uses: ./.github/actions/python-script-runner | |
| with: | |
| script-path: './examples/sample_script.py' | |
| python-version: '3.11' | |
| timeout-minutes: 30 | |
| max-retries: 1 | |
| security-scan: | |
| runs-on: ubuntu-latest | |
| name: Security Scanning | |
| steps: | |
| - name: 'Checkout code' | |
| uses: actions/checkout@v3 | |
| - name: 'Run security scan' | |
| uses: ./.github/actions/python-script-runner | |
| with: | |
| script-path: './examples/sample_script.py' | |
| python-version: '3.11' | |
| enable-security-scan: true | |
| enable-dependency-scan: true |