-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable Linux compatibility with dependency changes and improved dev t…
…ooling (#17) * run linux tests on dev branch * don't show if headless * install qt deps * try async setting * Update run-tests.yml * try additional qt libs * troubleshoot further with docker * linting * Update run-tests.yml * Update run-tests.yml * Update run-tests.yml * Update uv.lock * fallback to napari[all] and setup qt for ubuntu * move to macos-14 for tests * add python3-pyqt5 installation * attempt to install different qt deps * Update run-tests.yml * attempt another linux dep step * update for linting step * update docs
- Loading branch information
Showing
6 changed files
with
168 additions
and
55 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 |
---|---|---|
|
@@ -10,7 +10,7 @@ on: | |
|
||
jobs: | ||
pre_commit_checks: | ||
runs-on: macos-13 | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
# checks out the repo | ||
- uses: actions/checkout@v4 | ||
|
@@ -21,6 +21,10 @@ jobs: | |
python-version: "3.11" | ||
- name: Install the latest version of uv | ||
uses: astral-sh/setup-uv@v5 | ||
- name: Display configuration for Ubuntu | ||
uses: pyvista/setup-headless-display-action@v3 | ||
with: | ||
qt: true | ||
- uses: pre-commit/[email protected] | ||
# run pre-commit ci lite for automated fixes | ||
- uses: pre-commit-ci/[email protected] | ||
|
@@ -29,7 +33,7 @@ jobs: | |
strategy: | ||
matrix: | ||
python_version: ["3.11", "3.12"] | ||
os: [macos-13] | ||
os: [ubuntu-22.04, macos-14] | ||
runs-on: ${{ matrix.os }} | ||
env: | ||
OS: ${{ matrix.os }} | ||
|
@@ -40,6 +44,11 @@ jobs: | |
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python_version }} | ||
- name: Display configuration for Ubuntu | ||
if: ${{ matrix.os == 'ubuntu-22.04' }} | ||
uses: pyvista/setup-headless-display-action@v3 | ||
with: | ||
qt: true | ||
- name: Install the latest version of uv | ||
uses: astral-sh/setup-uv@v5 | ||
- name: Run pytest | ||
|
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,43 @@ | ||
# referenced with modifications from | ||
# https://github.com/napari/napari/blob/main/dockerfile | ||
FROM --platform=linux/amd64 python:3.11 AS napari | ||
|
||
# below env var required to install libglib2.0-0 non-interactively | ||
ENV TZ=America/Los_Angeles | ||
ARG DEBIAN_FRONTEND=noninteractive | ||
ARG NAPARI_COMMIT=main | ||
|
||
WORKDIR /nviz | ||
|
||
# install python resources + graphical libraries used by qt and vispy | ||
RUN apt-get update && \ | ||
apt-get install -qqy \ | ||
build-essential \ | ||
git \ | ||
mesa-utils \ | ||
x11-utils \ | ||
libegl1-mesa \ | ||
libopengl0 \ | ||
libgl1-mesa-glx \ | ||
libglib2.0-0 \ | ||
libfontconfig1 \ | ||
libxrender1 \ | ||
libdbus-1-3 \ | ||
libxkbcommon-x11-0 \ | ||
libxi6 \ | ||
libxcb-icccm4 \ | ||
libxcb-image0 \ | ||
libxcb-keysyms1 \ | ||
libxcb-randr0 \ | ||
libxcb-render-util0 \ | ||
libxcb-xinerama0 \ | ||
libxcb-xinput0 \ | ||
libxcb-xfixes0 \ | ||
libxcb-shape0 \ | ||
&& apt-get clean | ||
|
||
# install napari from repo | ||
# see https://github.com/pypa/pip/issues/6548#issuecomment-498615461 for syntax | ||
RUN pip install --upgrade pip | ||
|
||
ENTRYPOINT ["/bin/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
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.