Check Well exists before trying to load data #822
Workflow file for this run
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
name: Build | |
on: [push, pull_request] | |
jobs: | |
test: | |
name: Test ${{ matrix.os }} / ${{ matrix.toxenv }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- {os: windows-latest, python_Version: '3.10', toxenv: 'py310'} | |
- {os: windows-latest, python_Version: '3.8', toxenv: 'py38'} | |
- {os: windows-latest, python_Version: '3.9', toxenv: 'py39'} | |
- {os: ubuntu-latest, python_Version: '3.10', toxenv: 'py310'} | |
- {os: ubuntu-latest, python_Version: '3.8', toxenv: 'py38'} | |
- {os: ubuntu-latest, python_Version: '3.9', toxenv: 'py39'} | |
- {os: macos-latest, python_Version: '3.10', toxenv: 'py310'} | |
- {os: macos-latest, python_Version: '3.8', toxenv: 'py38'} | |
# missing numcodecs wheels on 3.9. conda not yet an option. see gh-51 | |
# {os: macos-latest, python_Version: '3.9', toxenv: 'py39'} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
name: Install Python ${{ matrix.python_version }} | |
with: | |
python-version: ${{ matrix.python_version }} | |
- name: Install ubuntu libraries | |
if: startsWith(matrix.os, 'ubuntu') | |
run: "\ | |
sudo apt-get install -y \ | |
libdbus-1-3 libxkbcommon-x11-0 libxcb-icccm4 \ | |
libxcb-image0 libxcb-keysyms1 libxcb-randr0 \ | |
libxcb-render-util0 libxcb-xinerama0 \ | |
libxcb-xinput0 libxcb-xfixes0" | |
- name: Install & test | |
run: | | |
python -m pip install -U pip setuptools wheel pytest | |
python -m pip install -r requirements/requirements-dev.txt | |
tox -e ${{ matrix.toxenv }} | |
test_coverage: | |
name: Test coverage | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
name: Install Python '3.10' | |
with: | |
python-version: '3.10' | |
- name: Install dependencies | |
run: | | |
python -m pip install -r requirements/requirements-dev.txt | |
- name: Test | |
run: tox -e 'py310-coverage' | |
- uses: codecov/codecov-action@v2 | |
with: | |
file: ./coverage.xml | |
fail_ci_if_error: false |