Skip to content

Commit e685129

Browse files
authored
Setup Renovate (#960)
* remove dependabot * added renovate configs * added renovatebot user * added renovatebot user * Fixed filematch * Upgraded package deps for security * Upgraded package deps for security
1 parent 1a58b11 commit e685129

7 files changed

+82
-70
lines changed

.github/dependabot.yml

-26
This file was deleted.

.github/renovate-config.json

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3+
"onboarding": true,
4+
"requireConfig": "ignored",
5+
"platform": "github",
6+
"repositories": ["populationgenomics/metamist"],
7+
"prConcurrentLimit": 10,
8+
"prHourlyLimit": 5,
9+
"semanticCommits": "enabled",
10+
"enabledManagers": ["pip-compile"],
11+
"constraints": {
12+
"python": "==3.11"
13+
},
14+
"platformCommit": "enabled",
15+
"pip-compile": {
16+
"fileMatch": ["^requirements\\.txt$", "^requirements-dev\\.txt$"],
17+
"lockFileMaintenance": {
18+
"enabled": true,
19+
"branchTopic": "pip-compile-refresh",
20+
"commitMessageAction": "Refresh pip-compile outputs"
21+
}
22+
},
23+
"packageRules": [
24+
{
25+
"groupName": "all non-major dependencies",
26+
"groupSlug": "all-minor-patch",
27+
"matchUpdateTypes": [
28+
"minor",
29+
"patch"
30+
],
31+
"matchPackagePatterns": ["*"],
32+
"minimumReleaseAge": "48 hours"
33+
},
34+
{
35+
"groupName": "all major dependencies",
36+
"groupSlug": "all-major",
37+
"matchUpdateTypes": [
38+
"major"
39+
],
40+
"matchPackagePatterns": ["*"],
41+
"minimumReleaseAge": "48 hours"
42+
}
43+
]
44+
}

.github/workflows/compile_requirements.yaml

-41
This file was deleted.

.github/workflows/renovate.yaml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Renovate
2+
on:
3+
schedule:
4+
- cron: '0 0 * * Sun'
5+
push:
6+
branches:
7+
- dev
8+
workflow_dispatch:
9+
10+
permissions:
11+
contents: write
12+
pull-requests: write
13+
14+
jobs:
15+
renovate:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/create-github-app-token@v1
19+
id: app-token
20+
with:
21+
app-id: ${{ vars.RENOVATE_APP_ID }}
22+
private-key: ${{ secrets.RENOVATE_PRIVATE_KEY }}
23+
24+
- name: Checkout
25+
uses: actions/checkout@v4
26+
27+
- name: Self-hosted Renovate
28+
uses: renovatebot/[email protected]
29+
with:
30+
token: '${{ steps.app-token.outputs.token }}'
31+
docker-user: root
32+
configurationFile: .github/renovate-config.json
33+
env:
34+
LOG_LEVEL: 'debug'
35+
RENOVATE_PLATFORM_COMMIT: 'true'

requirements-dev.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ starlette==0.38.4
417417
# via
418418
# fastapi
419419
# strawberry-graphql
420-
strawberry-graphql[debug-server,fastapi]==0.235.1
420+
strawberry-graphql[debug-server,fastapi]==0.243.0
421421
# via
422422
# -r requirements-dev.in
423423
# -r requirements.in

requirements.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ google-cloud-pubsub==2.18.3
1515
google-cloud-storage==1.43.0
1616
uvicorn==0.29.0
1717
fastapi[all]==0.112.2
18-
strawberry-graphql[fastapi]==0.235.1
18+
strawberry-graphql[fastapi]==0.243.0
1919
databases[mysql]==0.9.0
2020
cryptography>=41.0.0
2121
python-dateutil==2.8.2

requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ sqlalchemy==2.0.34
300300
# via databases
301301
starlette==0.38.4
302302
# via fastapi
303-
strawberry-graphql[fastapi]==0.235.1
303+
strawberry-graphql[fastapi]==0.243.0
304304
# via -r requirements.in
305305
tabulate==0.9.0
306306
# via cpg-utils

0 commit comments

Comments
 (0)