Skip to content

Commit f02e40b

Browse files
committed
Use uv.lock
* The action uses --frozen: Only use versions from uv.lock * Dependabot only updates lock file * pyproject.toml no longer contains version pinning, only minimum versions Signed-off-by: Jussi Kukkonen <jkukkonen@google.com>
1 parent c71997d commit f02e40b

4 files changed

Lines changed: 629 additions & 10 deletions

File tree

.github/dependabot.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
version: 2
22
updates:
33

4-
- package-ecosystem: "pip"
4+
- package-ecosystem: "uv"
55
directory: "/"
6+
versioning-strategy: lockfile-only
67
schedule:
78
interval: "weekly"
9+
cooldown:
10+
default-days: 7
811
groups:
912
python-dependencies:
1013
patterns:
@@ -17,6 +20,8 @@ updates:
1720
directory: "/"
1821
schedule:
1922
interval: "weekly"
23+
cooldown:
24+
default-days: 7
2025
groups:
2126
action-dependencies:
2227
patterns:
@@ -29,3 +34,5 @@ updates:
2934
directory: "/clients/go-tuf/"
3035
schedule:
3136
interval: "weekly"
37+
cooldown:
38+
default-days: 7

action.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ runs:
1919
with:
2020
python-version: "3.14"
2121

22-
- name: Install test
22+
- name: Install test suite
2323
run: |
2424
echo "::group::Install test suite and dependencies"
2525
sudo apt install faketime
26-
uv sync --project "${{ github.action_path }}"
26+
uv sync --frozen --project "${{ github.action_path }}"
2727
echo "::endgroup::"
2828
shell: bash
2929

@@ -42,7 +42,8 @@ runs:
4242
fi
4343
4444
# run test suite
45-
uv run --project "${{ github.action_path }}" pytest -v --json-report --json-report-file=tuf-conformance-report.json "$TEST_LOCATION" \
45+
uv run --frozen --project "${{ github.action_path }}" -- \
46+
pytest -v --json-report --json-report-file=tuf-conformance-report.json "$TEST_LOCATION" \
4647
--entrypoint "$ENTRYPOINT" \
4748
--repository-dump-dir ./test-repositories
4849
shell: bash

pyproject.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,18 @@ build-backend = "hatchling.build"
55
[project]
66
name = "tuf-conformance"
77
dependencies = [
8-
"securesystemslib[crypto]==1.4.0",
9-
"tuf==7.0.0",
10-
"pytest==9.0.3",
11-
"pytest-json-report==1.5.0"
8+
"securesystemslib[crypto]>=1.4.0",
9+
"tuf>=7.0.0",
10+
"pytest",
11+
"pytest-json-report"
1212
]
1313
dynamic = ["version"]
1414
requires-python = ">= 3.10"
1515

1616
[project.optional-dependencies]
1717
lint = [
18-
"mypy==2.1.0",
19-
"ruff==0.15.15"
18+
"mypy",
19+
"ruff"
2020
]
2121

2222
[tool.hatch.version]

0 commit comments

Comments
 (0)