diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index ec871e5..ff2ee5e 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -3,7 +3,7 @@ name: Python testing on: push: branches: - - '**' + - "**" pull_request: jobs: @@ -16,22 +16,21 @@ jobs: python-version: ["3.10", "3.11", "3.12"] steps: - - name: Checkout repository - uses: actions/checkout@v4 - with: - # setuptools_scm requires a non-shallow clone of the repository - fetch-depth: 0 + - name: Checkout repository + uses: actions/checkout@v4 + with: + # setuptools_scm requires a non-shallow clone of the repository + fetch-depth: 0 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v5 - with: - python-version: ${{ matrix.python-version }} + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} - - name: Install Python package - run: | - python -m pip install pytest - python -m pip install . - - - name: Run Python tests - run: | - python -m pytest + - name: Install Python package + run: | + python -m pip install .[tests] + + - name: Run Python tests + run: | + python -m pytest diff --git a/pyproject.toml b/pyproject.toml index 300048d..a04a84a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -25,9 +25,18 @@ classifiers = [ dependencies = ["numpy", "matplotlib", "pyqt6", "scipy", "shapely>=2", "tqdm"] [project.optional-dependencies] -docs = ["sphinx", "sphinx_mdinclude", "sphinx_rtd_theme"] -dev = ["pytest", "pytest-cov", "black"] extra = ["networkx"] +docs = ["sphinx", "sphinx_mdinclude", "sphinx_rtd_theme"] +tests = ["pytest", "pytest-cov"] +dev = [ + "pytest", + "pytest-cov", + "black", + "networkx", + "sphinx", + "sphinx_mdinclude", + "sphinx_rtd_theme", +] [project.urls] Homepage = "https://github.com/ondrolexa/pypsbuilder"