-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New tests and code require a substantial number of requirements like opencv and Qt. Rather than try to encapsulate that configuration directly in .travis, we copy the napari-omero strategy of using conda in GH actions.
- Loading branch information
Showing
5 changed files
with
77 additions
and
21 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,47 @@ | ||
name: Build for Linux | ||
|
||
on: | ||
push: | ||
branches: ["master"] | ||
pull_request: | ||
branches: ["master"] | ||
|
||
jobs: | ||
test: | ||
name: ${{ matrix.platform }} ${{ matrix.python-version }} | ||
runs-on: ${{ matrix.platform }} | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
platform: [ubuntu-latest, macos-latest] | ||
python-version: [3.6, 3.7, 3.8] | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup miniconda | ||
- uses: goanpeca/[email protected] | ||
with: | ||
auto-update-conda: true | ||
python-version: ${{ matrix.python-version }} | ||
environment-file: environment.yml | ||
|
||
- name: Install Linux dependencies | ||
if: matrix.platform == 'ubuntu-latest' | ||
run: | | ||
sudo apt install libxkbcommon-x11-0 | ||
/sbin/start-stop-daemon --start --quiet \ | ||
--pidfile /tmp/custom_xvfb_99.pid --make-pidfile \ | ||
--background --exec /usr/bin/Xvfb \ | ||
-- :99 -screen 0 1920x1200x24 -ac +extension GLX | ||
- name: Install dependencies | ||
shell: bash -l {0} | ||
run: | | ||
python -m pip install --upgrade pip wheel pytest tox .[napari] | ||
- name: Run pytest | ||
shell: bash -l {0} | ||
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
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 @@ | ||
#name: z | ||
channels: | ||
- defaults | ||
- ome | ||
- conda-forge | ||
dependencies: | ||
- pyqt >=5.12.3 | ||
- napari | ||
- flake8 | ||
- ipython | ||
- mypy | ||
- omero-py | ||
- opencv | ||
- pip | ||
- py-opencv | ||
- pytest | ||
- python.app | ||
- requests | ||
- s3fs | ||
- scikit-image | ||
- scipy | ||
- xarray | ||
- zarr >= 2.4.0 | ||
- pip: | ||
- pre-commit | ||
- pytest-qt |
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