Skip to content
Draft
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
4 changes: 4 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ on:
- main
workflow_dispatch:

permissions: {}

jobs:

deploy:
Expand All @@ -21,6 +23,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false
- name: Set up Python
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
with:
Expand Down
11 changes: 10 additions & 1 deletion .github/workflows/make_bundle_conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true

permissions: {}

jobs:
packages:
name: Create packages
Expand All @@ -67,6 +69,7 @@ jobs:
- name: Checkout packaging code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false
fetch-depth: 0
repository: napari/packaging
path: napari-packaging
Expand All @@ -78,6 +81,7 @@ jobs:
- name: Checkout napari source
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false
fetch-depth: 0
repository: napari/napari
path: napari-source
Expand All @@ -87,6 +91,7 @@ jobs:
- name: Checkout conda-forge feedstock
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false
fetch-depth: 0
repository: conda-forge/napari-feedstock
path: napari-feedstock
Expand Down Expand Up @@ -217,6 +222,8 @@ jobs:
# Python versions the installers will bundle. The general
# principle is to follow the SPEC-0 recommendation:
# https://scientific-python.org/specs/spec-0000/
env:
installer-platforms: ${{ inputs.installer_platforms || 'linux-64,win-64,osx-64,osx-arm64' }}
run: |
import os
import json
Expand All @@ -243,7 +250,7 @@ jobs:
"target-platform": "win-64",
},
]
platforms_str = "${{ inputs.installer_platforms || 'linux-64,win-64,osx-64,osx-arm64' }}"
platforms_str = os.environ["installer-platforms"]
platforms = {p.strip() for p in platforms_str.split(",")}

matrix = {"include": []}
Expand Down Expand Up @@ -278,13 +285,15 @@ jobs:
- name: Checkout code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false
fetch-depth: 0
repository: napari/packaging
path: napari-packaging

- name: Checkout napari/napari
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false
fetch-depth: 0
repository: napari/napari
path: napari-source
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true

permissions: {}

jobs:
test:
name: ${{ matrix.platform }} py${{ matrix.python-version }}
Expand All @@ -32,6 +34,8 @@ jobs:

steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/tests_ui.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true

permissions: {}

jobs:
test:
name: ${{ matrix.platform }} py${{ matrix.python-version }}
Expand All @@ -32,6 +34,8 @@ jobs:
DISPLAY: ':99.0'
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/typing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true

permissions: {}

jobs:
test:
name: ${{ matrix.platform }} py${{ matrix.python-version }}
Expand All @@ -33,6 +35,8 @@ jobs:

steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/upstream_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false
repository: napari/napari
fetch-depth: 0

Expand All @@ -44,6 +45,7 @@ jobs:
if: env.PYPROJECT_TOML_CHANGES && github.event_name == 'schedule'
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false
repository: napari/packaging

- name: Create issue
Expand Down
5 changes: 5 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,8 @@ repos:
# compatible replacement for black
- id: ruff-format
exclude: ^constructor-manager-ui/src/constructor_manager_ui/style/images.py
- repo: https://github.com/zizmorcore/zizmor-pre-commit
rev: v1.12.1
hooks:
- id: zizmor
args: [--min-severity=medium, --quiet, --no-progress]
2 changes: 1 addition & 1 deletion conda-recipe/recipe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ outputs:
- if: unix
then:
- napari --version
- napari --version | grep "$(echo ${PKG_VERSION} | sed -re 's/(\.[0-9]+)\.dev/\1dev/')"
- napari --version | sed -re 's/(.*\.[0-9]+)\.dev(.*)/\1dev\2/' | grep "${PKG_VERSION}"
else:
- napari --version
# If the following line is uncommented, also uncomment requirements.
Expand Down
Loading