diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index ecb5e9d..f18026f 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -19,7 +19,7 @@ jobs: - name: Install package and dependencies run: | python -m pip install --upgrade pip - python -m pip install .[test] - - name: Test with pytest + python -m pip install pytest + - name: Run all tests in the tests folder with pytest run: | - pytest + python -m pytest tests diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index dc95e03..6b2dd14 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -3,7 +3,8 @@ name: Upload Python Package on: release: types: [published] - + workflow_dispatch: # Add manual trigger + permissions: contents: read diff --git a/pyproject.toml b/pyproject.toml index 222bcb9..203fd8d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -22,6 +22,8 @@ classifiers = [ [tool.setuptools.dynamic] version = { attr = "pykolada.__version__" } +[project.optional-dependencies] +test = ["pytest"] [project.urls] Homepage = "https://github.com/reversehobo/pykolada"