Skip to content

Commit

Permalink
Python v2.1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
ADandyGuyInSpace committed Dec 19, 2024
1 parent 6c1b150 commit c62a2fa
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 2 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/auto-merge-dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Auto-merge Dependabot PRs

on:
pull_request:
types: [opened, synchronize, reopened]

jobs:
auto-merge:
runs-on: ubuntu-latest
if: github.actor == 'dependabot[bot]'
permissions:
contents: write
pull-requests: write
steps:
- name: Enable auto-merge for Dependabot PRs
run: |
# Wait for all checks to complete
gh pr checkout "$PR_URL"
while true; do
checks_status=$(gh pr checks "$PR_URL" --json conclusion -q '.[].conclusion' | uniq)
if [[ "$checks_status" == "success" ]]; then
gh pr merge --auto --merge "$PR_URL"
break
elif [[ "$checks_status" == *"failure"* ]] || [[ "$checks_status" == *"cancelled"* ]]; then
echo "Checks failed or were cancelled. Not merging."
exit 1
fi
echo "Waiting for checks to complete..."
sleep 30
done
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 2 additions & 0 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
- uses: gabrielfalcao/pyenv-action@v7
with:
command: install
- uses: dschep/install-pipenv-action@v1
- name: setup-telnyx-prism-mock
run: source ./.github/scripts/before_install.sh
Expand Down
22 changes: 22 additions & 0 deletions .github/workflows/reviewpr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: PR Review

on:
workflow_dispatch:
pull_request:

permissions:
pull-requests: write
contents: write
actions: write

jobs:
review:
runs-on: ["self-hosted", "telnyx-2xsmall"]

steps:
- name: PR Review
uses: team-telnyx/reviewpr-internal@main
with:
telnyx_api_key: ${{ secrets.TELNYXAI_TOKEN }}
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
openai_api_key: ${{ secrets.OPENAI_API_KEY }}
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,7 @@ def run_tests(self):
install_requires=[
"requests >= 2.20",
"six >= 1.16.0",
"PyNaCl",
"black >= 23.0",
"PyNaCl"
],
python_requires=">=3.8",
tests_require=[
Expand Down

0 comments on commit c62a2fa

Please sign in to comment.