Skip to content

Port testing on Windows from Azure CI to GitHub's CI#7687

Merged
lagru merged 10 commits intoscikit-image:mainfrom
stefanv:port-azure-to-gh
Jan 31, 2025
Merged

Port testing on Windows from Azure CI to GitHub's CI#7687
lagru merged 10 commits intoscikit-image:mainfrom
stefanv:port-azure-to-gh

Conversation

@stefanv
Copy link
Copy Markdown
Member

@stefanv stefanv commented Jan 31, 2025

No description provided.

@stefanv stefanv force-pushed the port-azure-to-gh branch 3 times, most recently from 3e0d28b to a37be10 Compare January 31, 2025 06:25
@stefanv stefanv added the 🤖 type: Infrastructure CI, packaging, tools and automation label Jan 31, 2025
@stefanv stefanv marked this pull request as ready for review January 31, 2025 06:26
@stefanv stefanv requested a review from matthew-brett January 31, 2025 07:00
Copy link
Copy Markdown
Contributor

@matthew-brett matthew-brett left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some perhaps-helpful questions.

@matthew-brett
Copy link
Copy Markdown
Contributor

All good with me.

- name: Run tests
shell: bash
run: |
(cd .. && pytest --doctest-plus --showlocals --pyargs skimage)
Copy link
Copy Markdown
Member

@lagru lagru Jan 31, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From the CI's output it seems like we need

PYTEST: "pytest --config-file ${{ github.workspace }}/pyproject.toml"

here as well?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, correct; started this branch before that one was merged.

# and stop further segmentation.
#
# It may make sense to a warning here; on the other hand segmentations
# are not a ground truth, so this level of "noise" should be acceptable.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I might be confused here but I think the _label_all(rag, 'ncut label') should be indented as well and the comment above updated? Otherwise it's confusing because the body of the if-statement now executes for the non-degenerate case?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The body of the if statement runs for the non-degenerate case, yes. The comment is to explain why the if-clause is necessary in the first place. We could move it around, to make it clearer.

Copy link
Copy Markdown
Member

@lagru lagru left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only two comments left, should be good to go then IMO.

Copy link
Copy Markdown
Member

@lagru lagru left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks everyone. Looks perfect. Really excited for the brave new "10 min"-CI world. 🥰

@lagru lagru merged commit cf6daa9 into scikit-image:main Jan 31, 2025
22 checks passed
@lagru lagru changed the title Port azure to gh Port testing on Windows from Azure CI to GitHub's CI Jan 31, 2025
matthew-brett added a commit to matthew-brett/scikit-image that referenced this pull request Feb 4, 2025
…ailure

* origin/main:
  Add zizmor to pre-commit; address GH workflow issues raised (scikit-image#7662)
  Reenable test marked as flaky on Azure. (scikit-image#7694)
  Simultaneously resolve all dependencies; add pip caching (scikit-image#7690)
  Copy keypoints if necessary to preserve contiguity (scikit-image#7692)
  CI cleanup (scikit-image#7693)
  Port CI testing from Azure to GitHub (scikit-image#7687)
  Lower CI build verbosity
  Use pytest config in pyproject.toml in CI (scikit-image#7555)
  Improve docstring for rolling_ball function. (scikit-image#7682)
@stefanv stefanv added this to the 0.25.2 milestone Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🤖 type: Infrastructure CI, packaging, tools and automation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants