Skip to content

Commit a0f4b05

Browse files
committed
Install only the necessary dependencies for test/check workflow
1 parent d56115c commit a0f4b05

3 files changed

Lines changed: 7 additions & 8 deletions

File tree

.github/workflows/check.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ jobs:
2424
enable-cache: true
2525
cache-dependency-glob: "pyproject.toml"
2626

27-
- name: Install package with dependencies
28-
run: uv sync --all-extras --dev
27+
- name: Install package with check dependencies
28+
run: uv sync --extra check
2929

3030
# check with ruff
3131
- name: Run ruff

.github/workflows/unit_tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ jobs:
4040
enable-cache: true
4141
cache-dependency-glob: "pyproject.toml"
4242

43-
- name: Install package with dependencies
44-
run: uv sync --all-extras --dev
43+
- name: Install package with dev and test dependencies
44+
run: uv sync --extra test
4545

4646
# for all versions but the one we use for code coverage, run normally
4747
- name: Run unit tests normally

pyproject.toml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,14 @@ classifiers = [
5050
[project.optional-dependencies]
5151
docs = ["sphinx>=7.0.0", "alabaster", "myst-parser", "myst-parser[linkify]"]
5252
test = ["pytest>=7.2", "pytest-ordering", "pytest-cov"]
53-
examples = ["jupyterlab", "pandas"]
53+
notebooks = ["jupyterlab", "pandas", "treon"]
54+
check = ["undate[docs]", "undate[notebooks]", "mypy", "ruff"]
5455
dev = [
55-
"ruff",
5656
"pre-commit>=2.20.0",
5757
"twine",
5858
"wheel",
5959
"build",
60-
"mypy",
61-
"treon",
60+
"undate[check]",
6261
"undate[docs]",
6362
"undate[test]",
6463
]

0 commit comments

Comments
 (0)