Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .github/workflows/publish_testpypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
---
name: test-n-build
on:
workflow_dispatch:
push:
tags:
- v*
Expand Down Expand Up @@ -77,7 +78,11 @@ jobs:
working-directory: ./src/py/
name: Upload release to TestPyPI
needs: super-test
if: always() && !cancelled() && !failure()
if: |
always() &&
!cancelled() &&
!failure() &&
startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
environment:
name: testpypi
Expand Down
2 changes: 1 addition & 1 deletion src/py/kaleido/_mocker.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def _load_figures_from_paths(paths: list[Path]):
args = parser.parse_args()

if not Path(args.output).is_dir():
raise ValueError("Specified output must be existing directory.")
raise ValueError(f"Specified output must be existing directory. Is {args.output!s}")


# Function to process the images
Expand Down
Loading