Skip to content

Commit bb68dc4

Browse files
committed
ci: add action that updates dependencies every 6 months
1 parent 994804c commit bb68dc4

File tree

3 files changed

+43
-0
lines changed

3 files changed

+43
-0
lines changed

.github/renovate.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3+
"extends": ["config:recommended"],
4+
"packageRules": [
5+
{
6+
"matchManagers": ["pip_requirements", "conda"],
7+
"groupName": "Python dependencies",
8+
"separateMajorMinor": false
9+
},
10+
{
11+
"matchManagers": ["github-actions"],
12+
"groupName": "GitHub actions",
13+
"separateMajorMinor": false
14+
}
15+
],
16+
"dependencyDashboard": true,
17+
"onboarding": false,
18+
"requireConfig": "optional"
19+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: update_dependencies
2+
on:
3+
schedule:
4+
- cron: "0 0 1 2 *" # 1st of February at 00:00 UTC
5+
- cron: "0 0 1 8 *" # 1st of August at 00:00 UTC
6+
push: # TODO: remove this later, only for testing
7+
jobs:
8+
run_renovate:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v6.0.2
13+
- name: Run self-hosted Renovate
14+
uses: renovatebot/github-action@v44.2.5
15+
with:
16+
# token: ${{ secrets.RENOVATE_TOKEN }}
17+
token: ${{ secrets.RENOVATE_TOKEN_MY_QUEENS_FORK }}
18+
env:
19+
# RENOVATE_REPOSITORIES: "queens-py/queens"
20+
RENOVATE_REPOSITORIES: "leahaeusel/queens"
21+
RENOVATE_BRANCH_PREFIX: "renovate-action/"
22+
LOG_LEVEL: "debug"
23+
RENOVATE_BASE_BRANCH_PATTERNS: "main-with-renovate-comments"

environment.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ dependencies:
1212
# for example BLAS libraries like Intel MKL for numpy
1313
- cython==3.0.11
1414
- numba==0.60.0
15+
# renovate: data-source=conda depName=conda-forge/numpy
1516
- numpy==1.26.4
1617
- pandas==2.2.3
1718
- scikit-learn==1.5.2

0 commit comments

Comments
 (0)