forked from strands-agents/harness-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (37 loc) · 1.02 KB
/
Copy pathpython-pr-and-push.yml
File metadata and controls
40 lines (37 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: "Python: Pull Request and Push"
on:
push:
branches: [ main ]
paths:
- 'strands-py/**'
- '.github/workflows/python-*'
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
call-test-lint:
uses: ./.github/workflows/python-test-lint.yml
permissions:
contents: read
with:
ref: ${{ github.event.pull_request.head.sha || github.sha }}
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
check-api:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout code
uses: actions/checkout@v7
with:
fetch-depth: 0
- name: Setup uv
uses: astral-sh/setup-uv@v7
- name: Check API breaking changes
run: |
if ! uvx griffe check --search strands-py/src --format github strands --against "main"; then
echo "Potential API changes detected (review if actually breaking)"
exit 1
fi