Skip to content

Commit 549e122

Browse files
ci: re-enable flakybot (#156)
1 parent e33366f commit 549e122

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/tests.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,27 @@ jobs:
8585
- name: Run tests
8686
run: nox -s unit-${{ matrix.python-version }}
8787

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+
88109
integration:
89110
# 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)
90111
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:
158179
ALLOYDB_INSTANCE_IP: '${{ steps.secrets.outputs.ALLOYDB_INSTANCE_IP }}'
159180
ALLOYDB_INSTANCE_URI: '${{ steps.secrets.outputs.ALLOYDB_INSTANCE_URI }}'
160181
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

Comments
 (0)