@@ -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", "windows-latest"]
58
56
steps :
59
57
60
58
with :
@@ -65,39 +63,45 @@ jobs:
65
63
python-version : ${{ matrix.python-version }}
66
64
- name : Install tox and upgrade setuptools and pip
67
65
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.
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 : Install build dependencies (Windows)
73
+ run : choco install yasm
74
+ if : ${{ runner.os == "Windows" }}
75
+ - name : Run tests
80
76
run : tox -e py3
81
- if : ${{ matrix.linking_method == 'static' }}
82
77
- name : Upload coverage report
83
- if : ${{ matrix.python-version == 3.6 && matrix.linking_method == 'static'}} # Only upload coverage once
84
78
uses : codecov/codecov-action@v1
85
79
86
- macos :
87
- runs-on : macos-latest
80
+ test-dynamic :
81
+ runs-on : ubuntu-20.04
88
82
needs : lint
83
+ strategy :
84
+ matrix :
85
+ python-version :
86
+ - 3.6
87
+ - 3.7
88
+ - 3.8
89
+ - 3.9
89
90
steps :
90
91
- name : Install python 3.6
91
92
92
93
with :
93
94
submodules : recursive
94
- - name : Set up Python 3.6
95
+ - name : Set up Python ${{ matrix.python-version }}
95
96
96
97
with :
97
- python-version : 3.6
98
+ python-version : ${{ matrix.python-version }}
99
+ - name : Install isal
100
+ run : sudo apt-get install libisal-dev
98
101
- name : Install tox and upgrade setuptools and pip
99
102
run : pip install --upgrade tox setuptools pip
100
- - name : Install build dependencies
101
- run : brew install yasm automake autoconf
102
- - name : Run tests
103
+
104
+ - name : Run tests (dynamic link)
103
105
run : tox -e py3
106
+ env :
107
+ PYTHON_ISAL_LINK_DYNAMIC : True
0 commit comments