Skip to content

Commit 82dc2c1

Browse files
committed
chore(deps): update dependencies and build tools
- Upgrade actions/checkout to v5 - Replace actions/setup-python with astral-sh/setup-uv - Use uv sync and uv run for dependency management - Update dependency groups in pyproject.toml - Rename static-type-check group to mypy - Reorganize typing dependencies into types-all group - Remove deprecated pyproject-build usage - Enable caching for uv installations - Simplify test execution with uv run pytest - Update build process to use uv build
1 parent c5ff25e commit 82dc2c1

File tree

2 files changed

+18
-23
lines changed

2 files changed

+18
-23
lines changed

.github/workflows/python-package.yml

Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -57,23 +57,22 @@ jobs:
5757
- 6379:6379
5858

5959
steps:
60-
- uses: actions/checkout@v4
60+
- uses: actions/checkout@v5
6161

62-
- name: Set up Python ${{ matrix.python-version }}
63-
uses: actions/setup-python@v5
62+
- name: Install uv
63+
uses: astral-sh/setup-uv@v6
6464
with:
65+
enable-cache: true
6566
python-version: ${{ matrix.python-version }}
66-
cache: pip
6767

68-
- name: Install dependencies
68+
- name: Install the project
6969
run: |
70-
python -m pip install --upgrade pip
71-
pip install -e . -r tests/requirements.txt
70+
uv sync --group test
7271
7372
- name: Run tests
7473
run: |
7574
export REDIS_URL=redis://localhost:6379
76-
pytest -x --cov --cov-report=xml --junitxml=junit.xml
75+
uv run pytest -x --cov --cov-report=xml --junitxml=junit.xml
7776
7877
- name: Upload coverage to Codecov
7978
uses: codecov/codecov-action@v5
@@ -86,17 +85,13 @@ jobs:
8685
if: needs.get-version.outputs.version != ''
8786
steps:
8887
- name: Checkout
89-
uses: actions/checkout@v4
88+
uses: actions/checkout@v5
9089
with:
9190
fetch-depth: 0
92-
- name: Set up Python
93-
uses: actions/setup-python@v5
94-
with:
95-
cache: pip
96-
- name: Install builder
97-
run: pip install build
98-
- name: Build package distributions
99-
run: pyproject-build
91+
- name: Install uv
92+
uses: astral-sh/setup-uv@v6
93+
- name: Build
94+
run: uv build
10095
- name: Upload package distributions to artifact
10196
uses: actions/upload-artifact@v4
10297
with:

pyproject.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,18 +65,18 @@ all = [
6565

6666
[dependency-groups]
6767
dev = [
68-
{ include-group = "static-type-check" },
68+
{ include-group = "mypy" },
6969
{ include-group = "test" },
7070
{ include-group = "docs" },
7171
{ include-group = "ipykernel" },
7272
]
7373

74-
static-type-check = ["mypy", { include-group = "typing" }]
74+
mypy = ["mypy", { include-group = "types-all" }]
7575

76-
typing-redis = ["types-redis>=3.5"]
77-
typing-PyYAML = ["types-PyYAML>=5.4"]
78-
typing-Pygments = ["types-Pygments>=2.9"]
79-
typing = [
76+
types-redis = ["types-redis>=3.5"]
77+
types-PyYAML = ["types-PyYAML>=5.4"]
78+
types-Pygments = ["types-Pygments>=2.9"]
79+
types-all = [
8080
{ include-group = "typing-redis" },
8181
{ include-group = "typing-PyYAML" },
8282
{ include-group = "typing-Pygments" },

0 commit comments

Comments
 (0)