Skip to content

Commit b41b4d3

Browse files
committed
enable runs of commit and test durations job on main branch only
1 parent 68330bb commit b41b4d3

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/python-package.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ jobs:
9191
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9292

9393
commit-durations:
94-
# if: github.repository_owner == 'autoatml' && github.ref == 'refs/heads/main'
94+
if: github.repository_owner == 'autoatml' && github.ref == 'refs/heads/main'
9595
needs: [build, get-pacemaker-run]
9696
runs-on: ubuntu-latest
9797
defaults:
@@ -131,7 +131,6 @@ jobs:
131131
run-id: ${{ needs.get-pacemaker-run.outputs.run_id }}
132132
github-token: ${{ secrets.GITHUB_TOKEN }}
133133

134-
135134
- name: Compute average of test durations
136135
run: |
137136
micromamba activate autoplex_tests
@@ -160,6 +159,7 @@ jobs:
160159
uses: actions/setup-python@v4
161160
with:
162161
python-version: '3.10'
162+
163163
- name: Install Coverage
164164
run: |
165165
python -m pip install coverage[toml]
@@ -169,13 +169,15 @@ jobs:
169169
uses: actions/download-artifact@v4
170170
with:
171171
pattern: coverage-*
172+
172173
- name: Download Pacemaker coverage artifacts
173174
continue-on-error: true
174175
uses: actions/download-artifact@v4
175176
with:
176177
pattern: coverage-pacemaker
177178
run-id: ${{ needs.get-pacemaker-run.outputs.run_id }}
178179
github-token: ${{ secrets.GITHUB_TOKEN }}
180+
179181
- name: Run coverage
180182
continue-on-error: true
181183
run: |

0 commit comments

Comments
 (0)