Skip to content

Commit

Permalink
Update Python package workflows and dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenselander committed Jan 15, 2024
1 parent 4345d57 commit 7320a1b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 2 additions & 1 deletion .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ name: Upload Python Package
on:
release:
types: [published]

workflow_dispatch: # Add manual trigger

permissions:
contents: read

Expand Down
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 7320a1b

Please sign in to comment.