@@ -22,12 +22,17 @@ jobs:
22
22
strategy :
23
23
fail-fast : false
24
24
matrix :
25
- os : [windows-latest] # ubuntu-latest,
25
+ os : [windows-latest, ubuntu-latest, macos-latest ] # ubuntu-latest,
26
26
python-version : [3.6] # [3.6, 3.7, 3.8, 3.9]
27
- platform : [x64] # [ x32, x64]
27
+ platform : [x32, x64]
28
28
with_contrib : [0, 1]
29
29
without_gui : [0, 1]
30
30
build_sdist : [0]
31
+ exclude :
32
+ - os : macos-latest
33
+ platform : x32
34
+ - os : ubuntu-latest
35
+ platform : x32
31
36
32
37
env :
33
38
ACTIONS_ALLOW_UNSECURE_COMMANDS : true
@@ -42,15 +47,18 @@ jobs:
42
47
- name : Update submodules
43
48
run : |
44
49
git submodule update --remote
50
+
45
51
- name : Set up Python ${{ matrix.python-version }}
46
52
uses : actions/setup-python@v2
47
53
with :
48
54
python-version : ${{ matrix.python-version }}
49
55
50
56
- name : Setup MSBuild.exe
57
+ if : ${{ matrix.os == 'windows-latest' }}
51
58
uses : warrenbuckley/Setup-MSBuild@v1
52
59
53
60
- name : build script
61
+ if : ${{ matrix.os == 'windows-latest' }}
54
62
run : |
55
63
python --version
56
64
python -m pip install --upgrade pip
@@ -59,19 +67,23 @@ jobs:
59
67
shell : cmd
60
68
61
69
- name : before test
70
+ if : ${{ matrix.os == 'windows-latest' }}
62
71
run : |
63
72
cd ${{ github.workspace }}/tests
64
73
$env:PYTHONWARNINGS = "ignore:::pip._internal.cli.base_command"
65
74
&python -m pip install --user --no-warn-script-location (ls "../dist/opencv_*.whl")
66
75
if ($LastExitCode -ne 0) {throw $LastExitCode}
76
+
67
77
- name : run test
78
+ if : ${{ matrix.os == 'windows-latest' }}
68
79
run : |
69
80
cd ${{ github.workspace }}/tests
70
81
python -m unittest test
71
82
shell : cmd
72
83
73
84
- name : saving artifacts
85
+ if : ${{ matrix.os == 'windows-latest' }}
74
86
uses : actions/upload-artifact@v2
75
87
with :
76
- name : wheels-${{ matrix.python-version }}-${{ matrix.platform }}-${{ matrix.with_contrib }}-${{ matrix.without_gui }}-${{ matrix.build_sdist }}
88
+ name : ${{ matrix.os }}- wheels-${{ matrix.python-version }}-${{ matrix.platform }}-${{ matrix.with_contrib }}-${{ matrix.without_gui }}-${{ matrix.build_sdist }}
77
89
path : dist\opencv*.whl
0 commit comments