-
Notifications
You must be signed in to change notification settings - Fork 19
94 lines (76 loc) · 2.09 KB
/
integration.yml
File metadata and controls
94 lines (76 loc) · 2.09 KB
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
name: integration
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
checks:
runs-on: ubuntu-latest
strategy:
max-parallel: 6
matrix:
check: [bluecheck, doc8, docs, isortcheck, flake8, mypy, pylint, rstcheck]
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install dependencies
run: |
pip install --upgrade pip
pip install tox
- name: Run checks with tox
run: |
tox -e ${{ matrix.check }}
tests:
needs: checks
runs-on: ${{ matrix.os }}
strategy:
max-parallel: 4
matrix:
os: [ubuntu-latest]
python-version: [3.6, 3.7, 3.8, 3.9]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install tox
run: |
pip install --upgrade pip
pip install tox
- name: Test with tox
run: tox -e py
- name: Install cython and pytest
run: pip install cython pytest pytest-cov pytest-xdist
- name: Build Cython extension
run: python setup.py build_ext --inplace
- name: Test with pytest
run: pytest
- name: Run benchmark
if: matrix.os == 'ubuntu-latest'
run: |
pip install -e .
python tests/benchmark.py
builds:
needs: tests
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, windows-2019, macos-10.15]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- name: Install cibuildwheel
run: python -m pip install cibuildwheel==1.11.1.post1
- name: Build wheels
run: python -m cibuildwheel --output-dir wheelhouse
env:
CIBW_BEFORE_BUILD: pip install cython
CIBW_TEST_REQUIRES: pytest pytest-cov pytest-xdist
CIBW_TEST_COMMAND: pytest {project}/tests && python {project}/tests/benchmark.py
CIBW_SKIP: pp*