diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0ae23df..5c6e40f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,6 +29,11 @@ jobs: - name: Install the project run: uv sync --all-extras --dev + + - name: Install dependencies + run: | + uv pip install -e ".[test]" # Note the added test extra + uv pip install pytest pytest-cov pytest-mock - name: Unit tests env: diff --git a/pyproject.toml b/pyproject.toml index 98d1feb..f42e118 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -56,6 +56,10 @@ dependencies = [ [project.scripts] gaspar = "gaspar.cli.main:main" +[tool.setuptools.package-dir] +gaspar = "src/gaspar" +tests = "tests" + [tool.pytest.ini_options] minversion = "6.0" addopts = "--strict-markers --doctest-modules --doctest-glob='*.rst' --ignore=setup.py" diff --git a/setup.cfg b/setup.cfg index b53dc8e..989485c 100644 --- a/setup.cfg +++ b/setup.cfg @@ -43,4 +43,10 @@ console_scripts = gaspar = examples/*.yaml examples/*.py - examples/documents/*.txt \ No newline at end of file + examples/documents/*.txt + +[options.extras_require] +test = + pytest >=7.0 + pytest-cov >=4.0 + pytest-mock >=3.0 \ No newline at end of file