diff --git a/.github/workflows/zarr-dev.yml b/.github/workflows/zarr-dev.yml new file mode 100644 index 00000000..b2ed02c2 --- /dev/null +++ b/.github/workflows/zarr-dev.yml @@ -0,0 +1,47 @@ +--- +name: Build using Zarr development branch + +on: [push, pull_request] + +jobs: + test: + name: ${{ matrix.platform }} ${{ matrix.python-version }} + runs-on: ${{ matrix.platform }} + + strategy: + fail-fast: true + matrix: + platform: [ubuntu-latest] + python-version: [3.8] + + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Setup miniconda + uses: conda-incubator/setup-miniconda@v2 + with: + auto-update-conda: true + channels: conda-forge,ome + environment-file: environment.yml + python-version: ${{ matrix.python-version }} + + - 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 -r requirements/requirements-dev.txt + python -m pip install \ + git+https://github.com/zarr-developers/zarr-python.git + + - name: Run pytest + shell: bash -l {0} + run: pytest