forked from napari/napari
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
411 changed files
with
15,542 additions
and
6,545 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# anything with no explicit code owners will be tagged to @core-devs | ||
* @napari/core-devs | ||
|
||
# submodules | ||
napari/_vispy/ @brisvag @melonora | ||
napari/_qt/ @Czaki @DragaDoncila @psobolewskiPhD | ||
napari/_app_model/ @lucyleeow @DragaDoncila | ||
napari/benchmarks/ @Czaki @jni | ||
napari/plugins/ @Czaki @DragaDoncila @lucyleeow | ||
napari/qt/ @Czaki @jni | ||
napari/settings/ @Czaki @jni | ||
|
||
# specific layers | ||
napari/layers/image/ @Czaki @brisvag @andy-sweet @kephale | ||
napari/layers/labels/ @jni @Czaki @brisvag | ||
napari/layers/points/ @brisvag @kevinyamauchi @andy-sweet @DragaDoncila @kephale | ||
napari/layers/shapes/ @kevinyamauchi @DragaDoncila @melonora | ||
napari/layers/surface/ @brisvag @kevinyamauchi @Czaki | ||
napari/layers/tracks/ @jni @andy-sweet | ||
napari/layers/vectors/ @brisvag @kevinyamauchi @andy-sweet | ||
|
||
# docs | ||
examples/ @melissawm @psobolewskiPhD @lucyleeow | ||
.github/workflows/build_docs.yml @melissawm @psobolewskiPhD @lucyleeow | ||
.github/workflows/deploy_docs.yml @melissawm @psobolewskiPhD | ||
.github/workflows/circleci.yml @melissawm @psobolewskiPhD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# Contributing to GitHub workflows and actions | ||
|
||
*Created: 2024-11-11; Updated:* | ||
|
||
See the napari website for more detailed contributor information: | ||
- [deployment](https://napari.org/stable/developers/contributing/documentation/docs_deployment.html) | ||
- [contributing guide](https://napari.org/stable/developers/contributing/index.html) | ||
- [core developer guide](https://napari.org/stable/developers/coredev/core_dev_guide.html) | ||
|
||
## Workflows and actions | ||
|
||
There are over 20 GitHub workflows found in `.github/workflows`. | ||
The team creates a workflow to automate manual actions and steps. | ||
This results in improved accuracy and quality. Some key workflows: | ||
- `actionlint.yml` does static testing of GitHub action workflows | ||
- benchmarks | ||
- `reusable_run_tox_test.yml` uses our constraint files to install the | ||
compatible dependencies for each test environment which may differ | ||
by OS and qt versions. It is called from `test_pull_request.yml` and `test_comprehensive.yml`, not directly. | ||
- `upgrade_test_constraints.yml` automates upgrading dependencies for | ||
our test environments. It also has extensive commenting on what the | ||
upgrade process entails. | ||
|
||
If adding a workflow, please take a moment to explain its purpose at the | ||
top of its file. | ||
|
||
## Templates | ||
|
||
Used to provide a consistent user experience when submitting an issue or PR. | ||
napari uses the following: | ||
- `PULL_REQUEST_TEMPLATE.md` | ||
- `ISSUE_TEMPLATE` directory containing: | ||
- `config.yml` to add the menu selector when "New Issue" button is pressed | ||
- `design_related.md` | ||
- `documentation.md` | ||
- `feature_request.md` | ||
- `bug_report.yml` config file to provide text areas for users to complete for bug reports. | ||
- `FUNDING.yml`: redirect GitHub to napari NumFOCUS account | ||
- Testing and bots | ||
- `missing_translations.md`: used if an action detects a missing language translation | ||
- `dependabot.yml`: opens a PR to notify maintainers of updates to dependencies | ||
- `labeler.yml` is a labels config file for labeler action | ||
- `BOT_REPO_UPDATE_FAIL_TEMPLATE.md` is an bot failure notification template | ||
- `TEST_FAIL_TEMPLATE.md` is a test failure notification template | ||
|
||
## CODEOWNERS | ||
|
||
This `CODEOWNERS` file identifies which individuals are notified if a | ||
particular file or directory is found in a PR. Core team members can | ||
update if desired. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: Actionlint | ||
# https://github.com/rhysd/actionlint | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- '.github/**' | ||
|
||
jobs: | ||
actionlint: | ||
name: Action lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Check workflow files | ||
run: | | ||
bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash) | ||
./actionlint -color -ignore SC2129 | ||
shell: bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -73,6 +73,8 @@ jobs: | |
|
||
- name: Setup asv | ||
run: python -m pip install "asv[virtualenv]" | ||
env: | ||
PIP_CONSTRAINT: resources/constraints/benchmark.txt | ||
|
||
- uses: octokit/[email protected] | ||
id: latest_release | ||
|
@@ -89,8 +91,11 @@ jobs: | |
# asv will checkout commits, which might contain LFS artifacts; ignore those errors since | ||
# they are probably just documentation PNGs not needed here anyway | ||
GIT_LFS_SKIP_SMUDGE: 1 | ||
HEAD_LABEL: ${{ github.event.pull_request.head.label }} | ||
PIP_CONSTRAINT: ${{ github.workspace }}/resources/constraints/benchmark.txt | ||
run: | | ||
set -euxo pipefail | ||
read -ra cmd_options <<< "$ASV_OPTIONS" | ||
# ID this runner | ||
asv machine --yes | ||
|
@@ -100,7 +105,7 @@ jobs: | |
BASE_REF=${{ github.event.pull_request.base.sha }} | ||
CONTENDER_REF=${GITHUB_SHA} | ||
echo "Baseline: ${BASE_REF} (${{ github.event.pull_request.base.label }})" | ||
echo "Contender: ${CONTENDER_REF} (${{ github.event.pull_request.head.label }})" | ||
echo "Contender: ${CONTENDER_REF} ($HEAD_LABEL)" | ||
elif [[ $GITHUB_EVENT_NAME == schedule ]]; then | ||
EVENT_NAME="cronjob" | ||
BASE_REF="${{ fromJSON(steps.latest_release.outputs.data).target_commitish }}" | ||
|
@@ -115,12 +120,12 @@ jobs: | |
echo "Contender: ${CONTENDER_REF} (workflow input)" | ||
fi | ||
echo "EVENT_NAME=$EVENT_NAME" >> $GITHUB_ENV | ||
echo "BASE_REF=$BASE_REF" >> $GITHUB_ENV | ||
echo "CONTENDER_REF=$CONTENDER_REF" >> $GITHUB_ENV | ||
echo "EVENT_NAME=$EVENT_NAME" >> "$GITHUB_ENV" | ||
echo "BASE_REF=$BASE_REF" >> "$GITHUB_ENV" | ||
echo "CONTENDER_REF=$CONTENDER_REF" >> "$GITHUB_ENV" | ||
# Run benchmarks for current commit against base | ||
asv continuous $ASV_OPTIONS -b '${{ matrix.selection-regex }}' ${BASE_REF} ${CONTENDER_REF} \ | ||
asv continuous "${cmd_options[@]}" -b "${{ matrix.selection-regex }}" "${BASE_REF}" "${CONTENDER_REF}" \ | ||
| sed -E "/Traceback | failed$|PERFORMANCE DECREASED/ s/^/::error:: /" \ | ||
| tee asv_continuous.log | ||
|
@@ -163,6 +168,9 @@ jobs: | |
"[CI logs and artifacts](||BENCHMARK_CI_LOGS_URL||) for further details." \ | ||
> .asv/results/message_${{ matrix.benchmark-name }}.txt | ||
awk '/Benchmark.*Parameter/,/SOME BENCHMARKS HAVE CHANGED SIGNIFICANTLY/' asv_continuous.log \ | ||
>> .asv/results/message_${{ matrix.benchmark-name }}.txt | ||
fi | ||
- uses: actions/upload-artifact@v4 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,8 @@ on: | |
push: | ||
branches: | ||
- main | ||
tags: | ||
- "v*" | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
|
@@ -16,6 +18,22 @@ jobs: | |
name: Build docs on napari/docs | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: get directory name | ||
# if this is a tag, use the tag name as the directory name else dev | ||
env: | ||
REF: ${{ github.ref }} | ||
run: | | ||
TAG="${GITHUB_REF/refs\/tags\/v/}" | ||
VER="${TAG/a*/}" # remove alpha identifier | ||
VER="${VER/b*/}" # remove beta identifier | ||
VER="${VER/rc*/}" # remove rc identifier | ||
VER="${VER/post*/}" # remove post identifier | ||
if [[ "$REF" == "refs/tags/v"* ]]; then | ||
echo "branch_name=$VER" >> "$GITHUB_ENV" | ||
else | ||
echo "branch_name=dev" >> "$GITHUB_ENV" | ||
fi | ||
- name: Trigger workflow and wait | ||
uses: convictional/[email protected] | ||
with: | ||
|
@@ -25,3 +43,4 @@ jobs: | |
workflow_file_name: build_and_deploy.yml | ||
trigger_workflow: true | ||
wait_workflow: true | ||
client_payload: '{"target_directory": "${{ env.branch_name }}"}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.