|
85 | 85 | - name: Run tests |
86 | 86 | run: nox -s unit-${{ matrix.python-version }} |
87 | 87 |
|
| 88 | + - name: FlakyBot (Linux) |
| 89 | + # only run flakybot on periodic (schedule) and continuous (push) events |
| 90 | + if: ${{ (github.event_name == 'schedule' || github.event_name == 'push') && runner.os == 'Linux' && always() }} |
| 91 | + run: | |
| 92 | + curl https://github.com/googleapis/repo-automation-bots/releases/download/flakybot-1.1.0/flakybot -o flakybot -s -L |
| 93 | + chmod +x ./flakybot |
| 94 | + ./flakybot --repo ${{github.repository}} --commit_hash ${{github.sha}} --build_url https://github.com/${{github.repository}}/actions/runs/${{github.run_id}} |
| 95 | + - name: FlakyBot (Windows) |
| 96 | + # only run flakybot on periodic (schedule) and continuous (push) events |
| 97 | + if: ${{ (github.event_name == 'schedule' || github.event_name == 'push') && runner.os == 'Windows' && always() }} |
| 98 | + run: | |
| 99 | + curl https://github.com/googleapis/repo-automation-bots/releases/download/flakybot-1.1.0/flakybot.exe -o flakybot.exe -s -L |
| 100 | + ./flakybot.exe --repo ${{github.repository}} --commit_hash ${{github.sha}} --build_url https://github.com/${{github.repository}}/actions/runs/${{github.run_id}} |
| 101 | + - name: FlakyBot (macOS) |
| 102 | + # only run flakybot on periodic (schedule) and continuous (push) events |
| 103 | + if: ${{ (github.event_name == 'schedule' || github.event_name == 'push') && runner.os == 'macOS' && always() }} |
| 104 | + run: | |
| 105 | + curl https://github.com/googleapis/repo-automation-bots/releases/download/flakybot-1.1.0/flakybot-darwin-amd64 -o flakybot -s -L |
| 106 | + chmod +x ./flakybot |
| 107 | + ./flakybot --repo ${{github.repository}} --commit_hash ${{github.sha}} --build_url https://github.com/${{github.repository}}/actions/runs/${{github.run_id}} |
| 108 | +
|
88 | 109 | integration: |
89 | 110 | # run job on proper workflow event triggers (skip job for pull_request event from forks and only run pull_request_target for "tests: run" label) |
90 | 111 | if: "${{ (github.event.action != 'labeled' && github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name) || github.event.label.name == 'tests: run' }}" |
@@ -158,3 +179,11 @@ jobs: |
158 | 179 | ALLOYDB_INSTANCE_IP: '${{ steps.secrets.outputs.ALLOYDB_INSTANCE_IP }}' |
159 | 180 | ALLOYDB_INSTANCE_URI: '${{ steps.secrets.outputs.ALLOYDB_INSTANCE_URI }}' |
160 | 181 | run: nox -s system-${{ matrix.python-version }} |
| 182 | + |
| 183 | + - name: FlakyBot (Linux) |
| 184 | + # only run flakybot on periodic (schedule) and continuous (push) events |
| 185 | + if: ${{ (github.event_name == 'schedule' || github.event_name == 'push') && always() }} |
| 186 | + run: | |
| 187 | + curl https://github.com/googleapis/repo-automation-bots/releases/download/flakybot-1.1.0/flakybot -o flakybot -s -L |
| 188 | + chmod +x ./flakybot |
| 189 | + ./flakybot --repo ${{github.repository}} --commit_hash ${{github.sha}} --build_url https://github.com/${{github.repository}}/actions/runs/${{github.run_id}} |
0 commit comments