1
- name : Unit test and code coverage (macOS)
1
+ name : Unit test and code coverage
2
2
3
3
on :
4
4
push :
17
17
strategy :
18
18
fail-fast : false
19
19
matrix :
20
- os : ["macos-latest"]
20
+ os : ["macos-latest", "ubuntu-latest", "windows-latest" ]
21
21
python-version : ["3.10"]
22
22
23
23
runs-on : ${{ matrix.os }}
@@ -30,20 +30,24 @@ jobs:
30
30
with :
31
31
python-version : ${{ matrix.python-version }}
32
32
cache : " pip"
33
- - name : Print system info
34
- run : sw_vers; python --version; arch
35
33
- name : Install build tools
36
34
run : |
37
35
python -m pip install --upgrade "pip<24.1" "setuptools==73.0.1"
38
36
python -m pip install coverage coveralls
39
- - name : Install ICU
37
+ - name : Install ICU (macOS)
38
+ if : startsWith(matrix.os, 'macos-')
40
39
run : |
41
40
brew install icu4c
42
41
PKG_CONFIG_PATH=$(brew --prefix)/opt/icu4c/lib/pkgconfig
43
42
echo "PKG_CONFIG_PATH=${PKG_CONFIG_PATH}" >> "${GITHUB_ENV}"
44
43
ICU_VER=$(pkg-config --modversion icu-i18n)
45
44
echo "ICU_VER=${ICU_VER}"
46
45
echo "ICU_VER=${ICU_VER}" >> "${GITHUB_ENV}"
46
+ - name : Install ICU (Windows)
47
+ if : startsWith(matrix.os, 'windows-')
48
+ run : |
49
+ python -m pip install "https://github.com/cgohlke/pyicu-build/releases/download/v2.14/PyICU-2.14-cp310-cp310-win_amd64.whl"
50
+ # if needed, get pip wheel link from https://github.com/cgohlke/pyicu-build/releases
47
51
- name : Install PyTorch
48
52
run : pip install torch
49
53
# if needed, get pip wheel link from http://download.pytorch.org/whl/torch/
0 commit comments