Skip to content

Commit 24228a7

Browse files
authored
ci: update dependabot uv grouping and pre-commit (cytomining#693)
* ci: update dependabot uv grouping and pre-commit * require quality test before full test suite
1 parent 9891f92 commit 24228a7

3 files changed

Lines changed: 44 additions & 21 deletions

File tree

.github/dependabot.yml

Lines changed: 43 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,71 @@
11
# GitHub Dependabot configuration
2-
# Note: there is no interaction between this configuration and dependabot security updates.
2+
# Note: there is no interaction between this configuration and Dependabot security updates.
33
# See here for more information:
44
# https://docs.github.com/en/code-security/dependabot/dependabot-security-updates/about-dependabot-security-updates#about-dependabot-security-updates
55

66
version: 2
77
updates:
8+
# Cooldown docs:
9+
# https://docs.github.com/en/code-security/dependabot/working-with-dependabot/dependabot-options-reference#cooldown
810
# GitHub Actions checks
911
# See here for more information:
1012
# https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuring-dependabot-version-updates
1113
- package-ecosystem: "github-actions"
1214
# checks for updates by default under `/.github/workflows`
1315
directory: "/"
1416
schedule:
15-
# Check for updates to GitHub Actions every week
16-
interval: "weekly"
17+
# Check for updates to GitHub Actions every month
18+
interval: "monthly"
19+
cooldown:
20+
default-days: 7
21+
groups:
22+
github-actions:
23+
patterns:
24+
- "*"
25+
1726
- package-ecosystem: "github-actions"
1827
# checks for updates under custom action setup-env
1928
directory: "/.github/actions/setup-env"
2029
schedule:
21-
# Check for updates to GitHub Actions every week
22-
interval: "weekly"
23-
# Perform checks and updates for the Python project dependencies.
30+
# Check for updates to GitHub Actions every month
31+
interval: "monthly"
32+
cooldown:
33+
default-days: 7
34+
groups:
35+
setup-env-actions:
36+
patterns:
37+
- "*"
38+
39+
# Perform checks and updates for the Python uv environment.
2440
# See here for more information:
25-
# https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#pip-and-pip-compile
26-
- package-ecosystem: "pip"
41+
# https://docs.astral.sh/uv/guides/integration/dependabot/
42+
- package-ecosystem: "uv"
2743
directory: "/"
2844
schedule:
29-
# Check for updates to the project lockfile every month
45+
# Check for updates to uv environment files every month
3046
interval: "monthly"
47+
cooldown:
48+
default-days: 7
49+
semver-major-days: 14
50+
semver-minor-days: 7
51+
semver-patch-days: 3
3152
groups:
3253
python-packages:
3354
patterns:
3455
- "*"
35-
update-types:
36-
- "minor"
37-
- "patch"
38-
exclude-patterns:
39-
- "pandas"
40-
- "scipy"
41-
- "sqlalchemy"
4256
ignore:
4357
# ignore cytominer-database as it is deprecated
4458
- dependency-name: "cytominer-database"
59+
60+
# Perform checks and updates for pre-commit hook versions.
61+
- package-ecosystem: "pre-commit"
62+
directory: "/"
63+
schedule:
64+
# Check for updates to pre-commit hooks every month
65+
interval: "monthly"
66+
cooldown:
67+
default-days: 7
68+
groups:
69+
pre-commit-hooks:
70+
patterns:
71+
- "*"

.github/workflows/integration-test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ jobs:
106106
integration-test:
107107
name: Pytest (Python ${{ matrix.python-version }} on ${{ matrix.os }})
108108
# Runs pytest on all tested versions of python and OSes
109+
needs: quality-test
109110
strategy:
110111
fail-fast: false
111112
matrix:

.pre-commit-config.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,3 @@ repos:
4040
rev: v0.1.16
4141
hooks:
4242
- id: almanack-check
43-
- repo: https://gitlab.com/vojko.pribudic.foss/pre-commit-update
44-
rev: v0.9.0
45-
hooks:
46-
- id: pre-commit-update
47-
args: ["--keep", "cffconvert", "--keep", "pyproject-fmt"]

0 commit comments

Comments
 (0)