-
Notifications
You must be signed in to change notification settings - Fork 29
add automated release workflows (PyPI disabled for testing) #36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
.github/workflows/pr-automerge.yml
Outdated
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Check PR approval status |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this step is checking whether the pr is approved, so we probably don't need to perform this check immediately when the pr is opened
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since we're only checking PR status, no checkout needed
.github/workflows/pr-automerge.yml
Outdated
ref: context.payload.pull_request.head.sha | ||
}); | ||
|
||
const requiredChecks = ['Lint', 'Test Python 3.10']; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should include all our checks here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
now includes all Python version tests and build checks
|
||
|
||
test-and-build: | ||
name: Test and Build |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think there are tests in this job
}); | ||
|
||
// Include ALL required checks | ||
const requiredChecks = [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
consider adding integration tests too
echo "⚠️ MANUAL APPROVAL REQUIRED FOR PRODUCTION" | ||
echo "" | ||
echo "Before approving:" | ||
echo "1. Test package: pip install -i https://test.pypi.org/simple/ bedrock-agentcore" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
extra space
content = Path("pyproject.toml").read_text() | ||
# More robust regex that matches the project version specifically | ||
# Look for version under [project] or [tool.poetry] sections | ||
pattern = r'(?:^\[project\]|\[tool\.poetry\])[\s\S]*?^version\s*=\s*"([^"]+)"' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we are not using poetry so we can remove it
Issue #, if available:
Description of changes:
add automated release workflows (PyPI disabled for testing)
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.