Skip to content
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

chore(deps): update pip (minor) - autoclosed #9

Closed
wants to merge 12 commits into from
18 changes: 18 additions & 0 deletions .github/workflows/renovate-approve.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: renovate-approve
run-name: CI for approving renovate PRs

on:
push:
branches:
- "renovate/**"

jobs:
autoapprove:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Approve PR
run: |
gh pr review --approve || true
env:
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}
18 changes: 18 additions & 0 deletions .github/workflows/renovate.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# workflow for checking package versions and opening PRs to bump
name: Renovate
on:
workflow_dispatch:
workflow_call:

jobs:
renovate:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Self-hosted Renovate
uses: renovatebot/github-action@23a02fe7be9e93f857a953cc8162e57d2c8401ef # v39.0.1
with:
configurationFile: renovate-config.js
token: ${{ github.token }}
9 changes: 9 additions & 0 deletions lint-requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
black==23.7.0
flake8==6.1.0
flake8-docstrings
flake8-copyright
flake8-builtins
pyproject-flake8
pep8-naming
isort
codespell
10 changes: 10 additions & 0 deletions renovate-config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
module.exports = {
branchPrefix: 'renovate/',
dryRun: null,
username: 'renovate-release',
gitAuthor: 'Renovate Bot <[email protected]>',
onboarding: true,
platform: 'github',
includeForks: true,
repositories: ['canonical/glauth-k8s-operator'],
}
57 changes: 57 additions & 0 deletions renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:base",
":disableDependencyDashboard",
":automergeDigest",
":automergePatch",
":automergeMinor",
":rebaseStalePrs",
":semanticCommits",
":semanticCommitScope(deps)",
"helpers:pinGitHubActionDigests"
],
"automergeType": "pr",
"rebaseWhen": "behind-base-branch",
"packageRules": [
{
"groupName": "github actions",
"matchManagers": ["github-actions"],
"matchUpdateTypes": ["major", "minor", "patch", "pin", "digest"],
"automerge": true,
"schedule": ["at any time"]
},
{
"groupName": "operator pip deps",
"matchManagers": ["pip_requirements"],
"fileMatch": ["requirements\\.txt$"],
"matchUpdateTypes": ["major", "minor", "patch", "pin", "digest"],
"automerge": false,
"schedule": ["at any time"],
"prPriority": 5
},
},
{
"groupName": "pip deps",
"matchManagers": ["pip_requirements"],
"matchUpdateTypes": ["major", "minor", "patch", "pin", "digest"],
"automerge": true,
"schedule": ["at any time"],
"prPriority": 4
},
{
"groupName": "testing deps",
"matchFiles": ["tox.ini"],
"matchUpdateTypes": ["major", "minor", "patch", "pin", "digest"],
"automerge": true,
"schedule": ["on monday"]
},
{
"groupName": "renovate packages",
"matchSourceUrlPrefixes": ["https://github.com/renovatebot/"],
"matchUpdateTypes": ["major", "minor", "patch", "pin", "digest"],
"automerge": true,
"schedule": ["at any time"]
}
]
}
2 changes: 2 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
ops >= 2.2.0
requests==2.30.0

4 changes: 1 addition & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,7 @@ commands =
[testenv:lint]
description = Check code against coding style standards
deps =
black
ruff
codespell
-r{toxinidir}/lint-requirements.txt
commands =
# if this charm owns a lib, uncomment "lib_path" variable
# and uncomment the following line
Expand Down