Skip to content

Commit

Permalink
Move test dependencies to their own group
Browse files Browse the repository at this point in the history
  • Loading branch information
jbhannah committed Jan 8, 2025
1 parent 1743e4c commit 72e6c1d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version-file: pyproject.toml
- run: uv sync --all-extras --dev
- run: uv sync --group test
- run: uv run alembic upgrade head
- run: uv run pytest
8 changes: 2 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,8 @@ requires = ["hatchling"]
build-backend = "hatchling.build"

[dependency-groups]
dev = [
"pytest>=8.3.4",
"pytest-cov>=6.0.0",
"pytest-xdist>=3.6.1",
"python-dotenv>=1.0.1",
]
dev = ["python-dotenv>=1.0.1"]
test = ["pytest>=8.3.4", "pytest-cov>=6.0.0", "pytest-xdist>=3.6.1"]

[tool.pytest.ini_options]
addopts = "-n 4"
8 changes: 5 additions & 3 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 72e6c1d

Please sign in to comment.