-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into support_multiscale
- Loading branch information
Showing
17 changed files
with
316 additions
and
216 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 |
---|---|---|
|
@@ -2,22 +2,21 @@ name: CI | |
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
tags: | ||
- "v*" # Push events to matching v*, i.e. v1.0, v20.15.10 | ||
branches: [main] | ||
tags: ["v*"] # Push events to matching v*, i.e. v1.0, v20.15.10 | ||
pull_request: | ||
branches: | ||
- main | ||
branches: [main] | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
check-manifest: | ||
# check-manifest is a tool that checks that all files in version control are | ||
# included in the sdist (unless explicitly excluded) | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
- run: pipx run check-manifest | ||
|
||
test: | ||
|
@@ -29,72 +28,65 @@ jobs: | |
strategy: | ||
fail-fast: false | ||
matrix: | ||
platform: [ubuntu-latest, macos-latest, windows-latest] | ||
python-version: ["3.8", "3.9", "3.10"] | ||
backend: [pyqt5] | ||
include: | ||
- platform: ubuntu-latest | ||
python-version: 3.7 | ||
backend: pyqt5 | ||
platform: [ubuntu-latest, macos-13, macos-latest, windows-latest] | ||
python-version: ["3.9", "3.10"] | ||
backend: [PyQt5] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: conda-incubator/setup-miniconda@v2 | ||
- uses: actions/checkout@v4 | ||
- uses: conda-incubator/setup-miniconda@v3 | ||
with: | ||
miniconda-version: "latest" | ||
channels: conda-forge | ||
channel-priority: strict | ||
miniforge-version: "latest" | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- uses: tlambert03/setup-qt-libs@v1 | ||
|
||
- name: Install Windows OpenGL | ||
if: runner.os == 'Windows' | ||
run: | | ||
git clone --depth 1 https://github.com/pyvista/gl-ci-helpers.git | ||
powershell gl-ci-helpers/appveyor/install_opengl.ps1 | ||
- uses: pyvista/setup-headless-display-action@v3 | ||
with: | ||
qt: true | ||
|
||
- name: Install dependencies | ||
run: | | ||
conda install omero-py | ||
python -m pip install --upgrade pip | ||
python -m pip install --upgrade setuptools tox tox-conda tox-gh-actions | ||
python -m pip install .[test] | ||
python -m pip install ${{ matrix.backend }} | ||
- name: Test with tox | ||
uses: aganders3/[email protected] | ||
with: | ||
shell: bash -el {0} | ||
run: python -m tox | ||
env: | ||
PLATFORM: ${{ matrix.platform }} | ||
PYTHON: ${{ matrix.python-version }} | ||
PYVISTA_OFF_SCREEN: True | ||
BACKEND: ${{ matrix.backend }} | ||
- name: Test | ||
run: pytest --color=yes --cov=napari_omero --cov-report=xml | ||
|
||
- name: Codecov | ||
uses: codecov/codecov-action@v3 | ||
uses: codecov/codecov-action@v5 | ||
env: | ||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | ||
|
||
deploy: | ||
# this will run when you have tagged a commit, starting with "v*" | ||
# and requires that you have put your twine API key in your | ||
needs: [test] | ||
if: github.repository == 'tlambert03/napari-omero' && contains(github.ref, 'tags') | ||
if: success() && startsWith(github.ref, 'refs/tags/') && github.repository == 'tlambert03/napari-omero' | ||
runs-on: ubuntu-latest | ||
permissions: | ||
id-token: write | ||
contents: write | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: 🐍 Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.x" | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -U build twine | ||
- name: Build and publish | ||
env: | ||
TWINE_USERNAME: __token__ | ||
TWINE_PASSWORD: ${{ secrets.pypi_password }} | ||
|
||
- name: 👷 Build | ||
run: | | ||
git tag | ||
python -m pip install build | ||
python -m build | ||
twine check dist/* | ||
twine upload dist/* | ||
- name: 🚢 Publish to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
|
||
- uses: softprops/action-gh-release@v2 | ||
with: | ||
generate_release_notes: true | ||
files: './dist/*' |
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
Oops, something went wrong.