Skip to content

Commit

Permalink
Merge pull request #31 from release-engineering/choredeps
Browse files Browse the repository at this point in the history
Replace Dependabot with  cd-red-bot
  • Loading branch information
JAVGan authored Aug 20, 2024
2 parents e540bcb + cfa00a5 commit 25d3253
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 10 deletions.
8 changes: 0 additions & 8 deletions .github/dependabot.yml

This file was deleted.

41 changes: 41 additions & 0 deletions .github/workflows/pip-compile.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
on:
workflow_dispatch: {}
schedule:
- cron: "20 20 * * 0"

name: "pip-compile: create PR"
jobs:
pip_compile:
name: pip-compile
runs-on: ubuntu-latest
steps:
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: "3.8"

- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y libkrb5-dev
- name: Install tox
run: pip install tox

- name: pip-compile
uses: technote-space/create-pr-action@v2
with:
EXECUTE_COMMANDS: tox -e pip-compile
COMMIT_MESSAGE: 'chore: scheduled pip-compile'
COMMIT_NAME: 'GitHub Actions'
COMMIT_EMAIL: '[email protected]'
GITHUB_TOKEN: ${{ secrets.PIP_COMPILE_TOKEN }}
PR_BRANCH_PREFIX: deps/
PR_BRANCH_NAME: 'pip-compile'
PR_TITLE: 'chore: scheduled pip-compile'
PR_BODY: '## Update dependencies
This is a scheduled update of Python dependencies within this repo managed by pip-compile.
This change will be submitted automatically within a few days if all checks have
succeeded.'
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ basepython = python3.8
skip_install = true
deps = pip-tools
commands =
pip-compile --generate-hashes --reuse-hashes --output-file=requirements.txt
pip-compile --generate-hashes --reuse-hashes --output-file=requirements-test.txt setup.py requirements-test.in
pip-compile -U --generate-hashes --reuse-hashes --output-file=requirements.txt
pip-compile -U --generate-hashes --reuse-hashes --output-file=requirements-test.txt setup.py requirements-test.in

[testenv:docs]
use_develop=true
Expand Down

0 comments on commit 25d3253

Please sign in to comment.