Skip to content

Commit

Permalink
ci: use coatl-dev/actions/pip-compile-3.11
Browse files Browse the repository at this point in the history
drop dependabot pip check
  • Loading branch information
cesarcoatl committed Oct 16, 2023
1 parent 7709808 commit b18714f
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 14 deletions.
14 changes: 1 addition & 13 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,7 @@ updates:
directory: "/"
schedule:
interval: "weekly"
labels: ["gh-dependencies"]
labels: ["dependencies"]
commit-message:
include: scope
prefix: "ci(deps)"

- package-ecosystem: "pip"
directory: "/"
schedule:
interval: "weekly"
allow:
- dependency-name: "mypy*"
dependency-type: "indirect"
labels: ["pip-dependencies"]
commit-message:
include: scope
prefix: "build(pip)"
49 changes: 49 additions & 0 deletions .github/workflows/pip-compile.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: pip-compile

on:
schedule:
# Day 28 at 12:00 PST
- cron: '0 20 28 * *'
workflow_dispatch:

jobs:
pip-compile:
runs-on: ubuntu-latest
env:
REQUIREMENTS_PATH: 'requirements.txt'
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: coatl-dev-pip-compile
uses: coatl-dev/actions/pip-compile-3.11@coatl
with:
path: ${{ env.REQUIREMENTS_PATH }}

- name: Detect changes
id: git-diff
uses: coatl-dev/actions/simple-git-diff@coatl
with:
path: ${{ env.REQUIREMENTS_PATH }}

- name: Import GPG key
if: ${{ success() && steps.git-diff.outputs.diff == 'true' }}
id: gpg-import
uses: coatl-dev/actions/gpg-import@coatl
with:
passphrase: ${{ secrets.COATL_BOT_GPG_PASSPHRASE }}
private-key: ${{ secrets.COATL_BOT_GPG_PRIVATE_KEY }}

- name: Commit changes
if: ${{ success() && steps.git-diff.outputs.diff == 'true' }}
run: |
git checkout -B pip-compile-autoupdate
git add ${{ env.REQUIREMENTS_PATH }}
git commit -m "pip(deps): pip-compile autoupdate"
git push --force --set-upstream origin pip-compile-autoupdate
- name: Create Pull Request
if: ${{ success() && steps.git-diff.outputs.diff == 'true' }}
uses: coatl-dev/actions/create-pr@coatl
with:
gh-token: ${{ secrets.COATL_BOT_GH_TOKEN }}
4 changes: 3 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ mypy[python2]==0.971 \
--hash=sha256:d744f72eb39f69312bc6c2abf8ff6656973120e2eb3f3ec4f758ed47e414a4bf \
--hash=sha256:ef943c72a786b0f8d90fd76e9b39ce81fb7171172daf84bf43eaf937e9f220a9 \
--hash=sha256:f2899a3cbd394da157194f913a931edfd4be5f274a88041c9dc2d9cdcb1c315c
# via ignition-api-stubs (pyproject.toml)
# via
# ignition-api-stubs (pyproject.toml)
# mypy
mypy-extensions==1.0.0 \
--hash=sha256:4392f6c0eb8a5668a69e23d168ffa70f0be9ccfd32b5cc2d26a34ae5b844552d \
--hash=sha256:75dbf8955dc00442a438fc4d0666508a9a97b6bd41aa2f0ffe9d2f2725af0782
Expand Down

0 comments on commit b18714f

Please sign in to comment.