diff --git a/.github/workflows/build_docs.yml b/.github/workflows/build_docs.yml index a6c915f5..6e6c00ec 100644 --- a/.github/workflows/build_docs.yml +++ b/.github/workflows/build_docs.yml @@ -24,7 +24,7 @@ permissions: concurrency: group: pages-${{ github.ref }} - cancel-in-progress: true + cancel-in-progress: ${{ github.event_name == 'pull_request' }} jobs: build: diff --git a/.github/workflows/test_and_deploy.yml b/.github/workflows/test_and_deploy.yml index 5da576c8..c30975b9 100644 --- a/.github/workflows/test_and_deploy.yml +++ b/.github/workflows/test_and_deploy.yml @@ -6,11 +6,30 @@ on: - main tags: - "v*" + # not evaluated for tag pushes, so releases always test and deploy + paths: + - "napari_cellseg3d/**" + - "examples/**" + - "pyproject.toml" + - "tox.ini" + - "MANIFEST.in" + - ".github/workflows/test_and_deploy.yml" pull_request: branches: - main + paths: + - "napari_cellseg3d/**" + - "examples/**" + - "pyproject.toml" + - "tox.ini" + - "MANIFEST.in" + - ".github/workflows/test_and_deploy.yml" workflow_dispatch: +concurrency: + group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.ref || github.run_id }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + jobs: test: name: ${{ matrix.platform }} py${{ matrix.python-version }}