@@ -42,19 +42,17 @@ jobs:
42
42
run : tox -e docs
43
43
env :
44
44
PYTHON_ISAL_LINK_DYNAMIC : True
45
- test :
46
- runs-on : ubuntu-20.04
45
+ test-static :
46
+ needs : lint
47
+ runs-on : ${{ matrix.os }}
47
48
strategy :
48
49
matrix :
49
50
python-version :
50
51
- 3.6
51
52
- 3.7
52
53
- 3.8
53
54
- 3.9
54
- linking_method :
55
- - static
56
- - dynamic
57
- needs : lint
55
+ os : ["macos-latest", "ubuntu-latest"]
58
56
steps :
59
57
60
58
with :
@@ -63,41 +61,40 @@ jobs:
63
61
64
62
with :
65
63
python-version : ${{ matrix.python-version }}
66
- - name : Install tox and upgrade setuptools and pip
67
- run : pip install --upgrade tox setuptools pip
68
- - name : Install isal
69
- if : ${{ matrix.linking_method == 'dynamic' }}
70
- run : sudo apt-get install libisal-dev
71
- - name : Install yasm # Yasm in pypa/manylinux images.
64
+ - name : Install tox and upgrade setuptools
65
+ run : pip install --upgrade tox setuptools
66
+ - name : Install build dependencies (Linux) # Yasm in pypa/manylinux images.
72
67
run : sudo apt install yasm
73
- if : ${{ matrix.linking_method == 'static' }}
74
- - name : Run tests (dynamic link)
75
- run : tox -e py3
76
- env :
77
- PYTHON_ISAL_LINK_DYNAMIC : True
78
- if : ${{ matrix.linking_method == 'dynamic' }}
79
- - name : Run tests (dynamic link)
68
+ if : runner.os == 'Linux'
69
+ - name : Install build dependencies (Macos)
70
+ run : brew install yasm automake autoconf
71
+ if : runner.os == 'macOS'
72
+ - name : Run tests
80
73
run : tox -e py3
81
- if : ${{ matrix.linking_method == 'static' }}
82
74
- name : Upload coverage report
83
- if : ${{ matrix.python-version == 3.6 && matrix.linking_method == 'static'}} # Only upload coverage once
84
75
uses : codecov/codecov-action@v1
85
76
86
- macos :
87
- runs-on : macos-latest
77
+ test-dynamic :
78
+ runs-on : ${{ matrix.os }}
88
79
needs : lint
80
+ strategy :
81
+ matrix :
82
+ python-version :
83
+ - 3.6
84
+ os : ["ubuntu-20.04"]
89
85
steps :
90
- - name : Install python 3.6
91
-
86
+
92
87
with :
93
88
submodules : recursive
94
- - name : Set up Python 3.6
89
+ - name : Set up Python ${{ matrix.python-version }}
95
90
96
91
with :
97
- python-version : 3.6
92
+ python-version : ${{ matrix.python-version }}
93
+ - name : Install isal
94
+ run : sudo apt-get install libisal-dev
98
95
- name : Install tox and upgrade setuptools and pip
99
96
run : pip install --upgrade tox setuptools pip
100
- - name : Install build dependencies
101
- run : brew install yasm automake autoconf
102
- - name : Run tests
97
+ - name : Run tests (dynamic link)
103
98
run : tox -e py3
99
+ env :
100
+ PYTHON_ISAL_LINK_DYNAMIC : True
0 commit comments