Skip to content

Commit 471057c

Browse files
committed
chore: update dependabot configuration and CI workflows
1 parent 48c9323 commit 471057c

4 files changed

Lines changed: 30 additions & 19 deletions

File tree

.github/dependabot.yml

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,35 @@
55

66
version: 2
77
updates:
8-
- package-ecosystem: uv
8+
- package-ecosystem: "uv"
99
directory: "/"
1010
schedule:
1111
interval: "weekly"
12-
open-pull-requests-limit: 10
12+
groups:
13+
minor-and-patch:
14+
update-types:
15+
- "patch"
16+
- "minor"
17+
major:
18+
update-types:
19+
- "major"
1320
assignees:
1421
- "zoola969"
1522
reviewers:
1623
- "zoola969"
1724
commit-message:
1825
prefix: "deps"
1926
include: "scope"
27+
28+
- package-ecosystem: "github-actions"
29+
directory: "/"
30+
schedule:
31+
interval: "weekly"
32+
groups:
33+
minor-and-patch:
34+
update-types:
35+
- "patch"
36+
- "minor"
37+
major:
38+
update-types:
39+
- "major"

.github/workflows/publish.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,12 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- uses: actions/checkout@v4
16-
- name: "Set up Python"
17-
uses: actions/setup-python@v5
18-
with:
19-
python-version-file: ".python-version"
2016

21-
- name: Install project
22-
run: uv sync --locked --no-default-groups
17+
- name: Install uv and set the python version
18+
uses: astral-sh/setup-uv@v7
2319

2420
- name: Build
25-
run: uv build --build
21+
run: uv build
2622

2723
- name: Store package distributions
2824
uses: actions/upload-artifact@v3

.github/workflows/tests.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
---
22
name: Tests
3-
permissions:
4-
contents: read
53

64
on:
75
push:
86
branches: ["master"]
97
pull_request:
108
branches: ["master"]
119

10+
permissions:
11+
contents: read
12+
1213
jobs:
1314
tests:
1415
name: "Python ${{ matrix.python-version }}"
@@ -29,10 +30,10 @@ jobs:
2930
run: uv sync --locked --no-default-groups --no-install-project --group dev --group test
3031

3132
- name: "Run mypy"
32-
run: uv run --no-project mypy cachium
33+
run: uv run mypy cachium
3334

3435
- name: "Run tests"
3536
run: uv run coverage run -m pytest tests/
3637

3738
- name: "Enforce coverage"
38-
run: uv run --no-project coverage report --show-missing --skip-covered --fail-under=100
39+
run: uv run coverage report --show-missing --skip-covered --fail-under=100

pyproject.toml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -187,11 +187,5 @@ trailing_comma_inline_array = true
187187
[tool.uv]
188188
default-groups = ["dev", "docs", "test"]
189189

190-
[[tool.uv.index]]
191-
explicit = true
192-
name = "pypi"
193-
publish-url = "https://pypi.org/legacy/"
194-
url = "https://pypi.org/simple/"
195-
196190
[tool.uv-dynamic-versioning]
197191
fallback-version = "0.0.0"

0 commit comments

Comments
 (0)