Skip to content

Commit c2b57d0

Browse files
fix: keep internal tools current without dropping Python 3.10 support (#1)
1 parent c738aff commit c2b57d0

3 files changed

Lines changed: 91 additions & 56 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@ jobs:
2323

2424
- name: Install dependencies
2525
run: |
26-
python -m pip install --upgrade pip
27-
pip install -e ".[dev]"
26+
python -m pip install --upgrade uv
27+
uv sync --locked --extra dev --python "${{ matrix.python-version }}"
2828
2929
- name: Run tests
30-
run: pytest tests/ -v --tb=short
30+
run: uv run --no-sync python -m pytest tests/ -v --tb=short
3131

3232
- name: Run tests with coverage
3333
if: matrix.python-version == '3.12'
34-
run: pytest tests/ --cov=code2docs --cov-report=term-missing --cov-report=xml
34+
run: uv run --no-sync python -m pytest tests/ --cov=code2docs --cov-report=term-missing --cov-report=xml
3535

3636
- name: Upload coverage
3737
if: matrix.python-version == '3.12'

pyproject.toml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ dev = [
5353
"mypy>=1.0",
5454
"build>=1.0",
5555
"twine>=5.0",
56-
"goal>=2.1.0",
5756
"costs>=0.1.20",
5857
"pfix>=0.1.60",
5958
]
@@ -117,3 +116,9 @@ max_commits = 500
117116

118117
# Cost thresholds for badge colors (USD)
119118
badge_color_thresholds = { low = 1.0, medium = 5.0, high = 10.0, critical = 50.0 }
119+
120+
[tool.uv.dependency-groups.automation]
121+
requires-python = ">=3.12"
122+
123+
[dependency-groups]
124+
automation = ["goal>=2.1.302"]

0 commit comments

Comments
 (0)