diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 81b9a41..b0e1170 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -5,10 +5,15 @@ name: Build, validate & Release # - For releases: when you push a tag like v1.2.3, this workflow runs the full matrix validation, then builds the release artifacts, and finally publishes to PyPI if all checks pass. on: + workflow_dispatch: # Release pipeline: run only when pushing a version-like tag (e.g. v1.2.3) + # Test pipeline: run tests on main/master pushes & pull requests AND tags. push: tags: - "v*.*.*" + branches: + - main + - master # Validation pipeline: run on PRs targeting main/master (no publishing) pull_request: diff --git a/.github/workflows/testing-ci.yml b/.github/workflows/testing-ci.yml index a915d32..f69b189 100644 --- a/.github/workflows/testing-ci.yml +++ b/.github/workflows/testing-ci.yml @@ -1,7 +1,14 @@ name: CI on: + push: + branches: + - main + - master + tags: + - "v*.*.*" pull_request: + branches: [main, master] types: [opened, synchronize, reopened] concurrency: