Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] GitHub Action to test wheels on all platforms #728

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .circleci/make_wheels.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ mkdir ~/wheels
# If we need binary wheels, we would need to step through the various versions
# of python and also run auditwheel on each output
pip wheel . --no-deps -w ~/wheels && rm -rf build
cd "$ROOTPATH/girder"
pip wheel . --no-deps -w ~/wheels && rm -rf build
cd "$ROOTPATH/girder_annotation"
pip wheel . --no-deps -w ~/wheels && rm -rf build
# cd "$ROOTPATH/girder"
# pip wheel . --no-deps -w ~/wheels && rm -rf build
# cd "$ROOTPATH/girder_annotation"
# pip wheel . --no-deps -w ~/wheels && rm -rf build
cd "$ROOTPATH/utilities/converter"
pip wheel . --no-deps -w ~/wheels && rm -rf build
cd "$ROOTPATH/utilities/tasks"
pip wheel . --no-deps -w ~/wheels && rm -rf build
# cd "$ROOTPATH/utilities/tasks"
# pip wheel . --no-deps -w ~/wheels && rm -rf build
cd "$ROOTPATH/sources/bioformats"
pip wheel . --no-deps -w ~/wheels && rm -rf build
cd "$ROOTPATH/sources/deepzoom"
Expand Down
53 changes: 53 additions & 0 deletions .github/workflows/test_wheels.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Test Wheel Installation

on:
push:
branches: [ master ]
pull_request:

jobs:
build-wheel-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.8"
- name: Install Python Dependencies
run: |
pip install --find-links https://girder.github.io/large_image_wheels -r requirements-dev-core.txt
- name: Build Wheels
run: ./.circleci/make_wheels.sh
- uses: actions/upload-artifact@v2
with:
name: wheels
path: ~/wheels


test-wheel-all:
needs: build-wheel-linux
strategy:
fail-fast: false
matrix:
python-version: [3.6, 3.7, 3.8, 3.9]
os: [ubuntu-latest, macOS-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/download-artifact@v2
with:
name: wheels
path: ~/wheels
- name: Install miniconda
uses: conda-incubator/setup-miniconda@v2
with:
auto-activate-base: true
python-version: ${{ matrix.python-version }}
# Handle tough dependencies with conda
- name: Install Dependencies
run: |
conda install -c conda-forge --yes 'gdal >=3' cachetools numpy 'psutil >=4.2.0' 'Pillow!=8.3.0,!=8.3.1'
- name: Install Weels
# ``*`` probably won't work on Windows
run: pip install '~/wheels/large-image-source-gdal*.whl[memcached]'