diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index da78a72..9d16d74 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -38,7 +38,7 @@ jobs: - uses: astral-sh/setup-uv@v7 - name: Test package - run: uv run --with "clang<19" --extra test pytest --forked + run: uv run --with "clang<19" --group test pytest --forked # Commented for now -- msys2 Clang (v15) and the clang Python package (v14) are incompatible # @@ -60,7 +60,7 @@ jobs: # python-version: ${{ matrix.python-version }} # # - name: Install package -# run: python -m pip install .[test] +# run: python -m pip install -e. --group test # # - name: Install clang # run: C:\msys64\usr\bin\pacman.exe -S clang64/mingw-w64-clang-x86_64-clang --noconfirm diff --git a/pyproject.toml b/pyproject.toml index 513178b..06f89af 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -27,12 +27,13 @@ classifiers = [ ] dynamic = ["version"] -[project.optional-dependencies] +[dependency-groups] test = [ "pytest", "pybind11", "pytest-forked", ] +dev = [{ include-group = "test" }] [project.scripts] pybind11-mkdoc = "pybind11_mkdoc:main"