Skip to content

Commit 0112475

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

File tree

3 files changed

+48
-0
lines changed

3 files changed

+48
-0
lines changed

.github/renovate.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
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+
}
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@v43.0.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: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,24 @@ channels:
66
# be listed explicitly here.
77
- nodefaults
88
dependencies:
9+
# renovate: datasource=conda depName=conda-forge/python
910
- python==3.11
1011
# to ensure that performance optimized backends are used,
1112
# the following packages are installed from conda
1213
# for example BLAS libraries like Intel MKL for numpy
14+
# renovate: datasource=conda depName=conda-forge/cython
1315
- cython==3.0.11
16+
# renovate: datasource=conda depName=conda-forge/numba
1417
- numba==0.60.0
18+
# renovate: datasource=conda depName=conda-forge/numpy
1519
- numpy==1.26.4
20+
# renovate: datasource=conda depName=conda-forge/pandas
1621
- pandas==2.2.3
22+
# renovate: datasource=conda depName=conda-forge/scikit-learn
1723
- scikit-learn==1.5.2
24+
# renovate: datasource=conda depName=conda-forge/scipy
1825
- scipy==1.14.1
26+
# renovate: datasource=conda depName=conda-forge/libopenblas
1927
- libopenblas==0.3.28
2028
# required for jupyter notebook integration into the sphinx documentation
2129
- pandoc

0 commit comments

Comments
 (0)