forked from ome/ome-zarr-py
-
Notifications
You must be signed in to change notification settings - Fork 0
70 lines (59 loc) · 2.31 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
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.11', toxenv: 'py311'}
- {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.11', toxenv: 'py311'}
- {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.11', toxenv: 'py311'}
- {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@v4
- 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 tox
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