diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index a8d822a..e511102 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -31,10 +31,10 @@ jobs: cache: pip cache-dependency-path: '**/pyproject.yaml' - - name: Install test dependencies + - name: Install dev dependencies run: | python -m pip install --upgrade pip - pip install --use-deprecated=legacy-resolver -e .[dev] + pip install --use-deprecated=legacy-resolver '.[dev]' - name: Lint with Ruff run: | @@ -70,7 +70,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - make develop + pip install --use-deprecated=legacy-resolver '.[tests]' - name: Test with pytest run: | diff --git a/Makefile b/Makefile index 8eef5d7..bbcce4d 100644 --- a/Makefile +++ b/Makefile @@ -49,7 +49,7 @@ ${VE_DIR}: #=> develop: install package in develop mode .PHONY: develop develop: - pip install -e ".[dev]" + pip install -e ".[dev,tests]" pre-commit install #=> install: install package diff --git a/pyproject.toml b/pyproject.toml index 99c0a53..c51a749 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -27,13 +27,15 @@ dev = [ "ipython ~= 8.4", "mypy-extensions ~= 1.0", "pre-commit ~= 3.4", - "pytest-cov ~= 4.1", - "pytest-optional-tests", - "pytest ~= 7.1", "pyright~=1.1", "ruff == 0.4.4", - "tox ~= 4.15", - "vcrpy", +] +tests = [ + "pytest-cov ~= 4.1", + "pytest-optional-tests", + "pytest ~= 7.1", + "vcrpy", + "tox ~= 4.15", ] docs = [ "mkdocs",