Skip to content

Commit 52bef7d

Browse files
committed
♻️ Refactor CI workflow and dependency management; unify optional dependencies under 'all' and 'extra'
1 parent 1bd2075 commit 52bef7d

File tree

3 files changed

+25
-50
lines changed

3 files changed

+25
-50
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@ jobs:
1616
runs-on: ubuntu-latest
1717
strategy:
1818
fail-fast: false
19-
matrix:
20-
python-version: ['3.12']
21-
2219
steps:
2320
- uses: actions/checkout@v4
2421

@@ -27,7 +24,7 @@ jobs:
2724
enable-cache: true
2825

2926
- name: Install dependencies
30-
run: uv sync --python ${{ matrix.python-version }} --group lint --all-extras
27+
run: uv sync --python 3.12 --group lint --all-extras
3128

3229
- uses: pre-commit/action@v3.0.0
3330
with:
@@ -54,9 +51,6 @@ jobs:
5451
with:
5552
enable-cache: true
5653

57-
- name: Install extra dependencies
58-
run: uv sync --group dev --all-extras
59-
6054
- name: Make coverage directory
6155
run: mkdir coverage
6256

@@ -103,7 +97,6 @@ jobs:
10397
jobs: ${{ toJSON(needs) }}
10498

10599
release:
106-
name: Deploy
107100
needs: [check]
108101
if: "success() && startsWith(github.ref, 'refs/tags/')"
109102
runs-on: ubuntu-latest

pyproject.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ dependencies = ['pydantic>=2.5.2','typing-extensions']
4343
dynamic = ['version']
4444

4545
[project.optional-dependencies]
46-
extra = [
46+
all = [
4747
'phonenumbers>=8,<9',
4848
'pycountry>=23',
4949
'semver>=3.0.2',
@@ -69,15 +69,14 @@ dev = [
6969
"pytest-pretty>=1.2.0",
7070
"dirty-equals>=0.7.1",
7171
"pytest>=8.3.2",
72-
"pytest-cov>=5.0.0",
7372
]
7473
lint = [
7574
"ruff>=0.7.4",
7675
"mypy>=0.910",
7776
"annotated-types>=0.7.0",
7877
"types-pytz>=2024.1.0.20240417",
7978
]
80-
all = [
79+
extra = [
8180
{ include-group = 'dev' },
8281
{ include-group = 'lint' },
8382
]

uv.lock

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

0 commit comments

Comments
 (0)