Skip to content

Commit 5c91aa3

Browse files
committed
chore: hermetic CI with a pinned uv, locked syncs and a dependency cooldown
1 parent 36a1f27 commit 5c91aa3

5 files changed

Lines changed: 33 additions & 2 deletions

File tree

‎.github/renovate.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3-
"extends": ["github>python-scim/renovate-config#1.0.1"]
3+
"extends": ["github>python-scim/renovate-config#1.0.3"]
44
}

‎.github/workflows/release.yml‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
tags:
66
- '*'
77

8+
env:
9+
UV_LOCKED: 1
10+
811
permissions:
912
contents: read
1013

@@ -17,6 +20,8 @@ jobs:
1720
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
1821
- name: Install uv
1922
uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10.0.1
23+
with:
24+
version: "0.12.13"
2025
- name: build dist
2126
run: uv build
2227
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1

‎.github/workflows/tests.yaml‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ on:
1010
- main
1111
- '*.*.*'
1212

13+
env:
14+
UV_LOCKED: 1
15+
1316
permissions:
1417
contents: read
1518

@@ -31,6 +34,7 @@ jobs:
3134
- name: Install uv
3235
uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10.0.1
3336
with:
37+
version: "0.12.13"
3438
enable-cache: true
3539
- name: Install Python ${{ matrix.python }}
3640
run: uv python install ${{ matrix.python }}
@@ -44,6 +48,7 @@ jobs:
4448
- name: Install uv
4549
uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10.0.1
4650
with:
51+
version: "0.12.13"
4752
enable-cache: true
4853
- name: Install Python 3.14
4954
run: uv python install 3.14
@@ -73,6 +78,7 @@ jobs:
7378
- name: Install uv
7479
uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10.0.1
7580
with:
81+
version: "0.12.13"
7682
enable-cache: true
7783
- name: Checkout downstream pyproject
7884
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
@@ -98,11 +104,13 @@ jobs:
98104
runs-on: ubuntu-latest
99105
env:
100106
UV_RESOLUTION: lowest-direct
107+
UV_LOCKED: 0
101108
steps:
102109
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
103110
- name: Install uv
104111
uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10.0.1
105112
with:
113+
version: "0.12.13"
106114
enable-cache: true
107115
- name: Install minimum dependencies
108116
run: uv sync
@@ -116,6 +124,7 @@ jobs:
116124
- name: Install uv
117125
uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10.0.1
118126
with:
127+
version: "0.12.13"
119128
enable-cache: true
120129
- name: Run style checks
121130
run: uv run --python 3.14 prek run --all-files --show-diff-on-failure
@@ -127,6 +136,7 @@ jobs:
127136
- name: Install uv
128137
uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10.0.1
129138
with:
139+
version: "0.12.13"
130140
enable-cache: true
131141
- name: Install dependencies
132142
run: uv sync --group doc

‎pyproject.toml‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[build-system]
2-
requires = ["uv_build>=0.12.16,<0.13.0"]
2+
requires = ["uv_build>=0.12.13,<0.13.0"]
33
build-backend = "uv_build"
44

55
[project]
@@ -37,6 +37,10 @@ repository = "https://github.com/python-scim/scim2-models"
3737
changelog = "https://scim2-models.readthedocs.io/en/latest/changelog.html"
3838
funding = "https://github.com/sponsors/python-scim"
3939

40+
[tool.uv]
41+
exclude-newer = "14 days"
42+
exclude-newer-package = { scim2-models = false, scim2-client = false, scim2-server = false, scim2-cli = false, scim2-tester = false, pytest-scim2-server = false }
43+
4044
[tool.uv.build-backend]
4145
module-root = ""
4246

‎uv.lock‎

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)