You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
43
34
echo "should-run=true" >> "$GITHUB_OUTPUT"
44
35
exit 0
45
36
fi
46
37
38
+
if [ "${{ github.event_name }}" = "pull_request" ] && [[ "$HEAD_REF" == crane/* ]]; then
39
+
echo "should-run=true" >> "$GITHUB_OUTPUT"
40
+
exit 0
41
+
fi
42
+
47
43
git diff --name-only \
48
44
"${{ github.event.pull_request.base.sha }}" \
49
45
"${{ github.event.pull_request.head.sha }}" \
50
46
| tee "$RUNNER_TEMP/changed-files.txt"
51
47
52
-
if grep -Eq '^(\.crane/|cmd/|internal/|pkg/|go\.mod$|go\.sum$|pyproject\.toml$|src/|tests/benchmarks/|tests/unit/test_crane_score\.py$)' "$RUNNER_TEMP/changed-files.txt"; then
48
+
if grep -Eq '^(\.crane/|\.github/workflows/migration-ci\.yml$|cmd/|internal/|pkg/|go\.mod$|go\.sum$|pyproject\.toml$|scripts/ci/|src/|tests/benchmarks/|tests/unit/test_crane_score\.py$)' "$RUNNER_TEMP/changed-files.txt"; then
53
49
echo "should-run=true" >> "$GITHUB_OUTPUT"
54
50
else
55
51
echo "should-run=false" >> "$GITHUB_OUTPUT"
@@ -137,11 +133,6 @@ jobs:
137
133
- name: Build Go CLI
138
134
run: go build -o "$RUNNER_TEMP/apm-go" ./cmd/apm
139
135
140
-
- name: Run Python performance guards
141
-
run: |
142
-
uv run pytest tests/benchmarks/test_scaling_guards.py -v
143
-
uv run pytest tests/benchmarks -v --tb=short -m benchmark
0 commit comments