@@ -12,27 +12,50 @@ jobs:
1212 access_token : ${{ github.token }}
1313 test :
1414 runs-on : ${{ matrix.platform }}
15+ container : ${{ matrix.container || '' }}
1516 strategy :
1617 matrix :
1718 platform :
18- - ubuntu-20.04
19- - macos-12
20- # - windows-2016
21- python-version : [2.7, 3.5, 3.6, 3.7, 3.8, 3.9]
19+ - ubuntu-24.04
20+ - windows-2025
21+ python-version : ['3.8', '3.9', '3.10', '3.12']
22+ include :
23+ - platform : ubuntu-24.04
24+ python-version : ' 3.6'
25+ container : python:3.6-slim
26+ - platform : ubuntu-24.04
27+ python-version : ' 3.7'
28+ container : python:3.7-slim
29+ - platform : macos-15
30+ python-version : ' 3.12'
2231
2332 steps :
24- - uses : actions/checkout@v1
33+ - uses : actions/checkout@v6
2534 - name : Set up Python ${{ matrix.python-version }}
26- uses : actions/setup-python@v2
35+ if : ${{ !matrix.container }}
36+ uses : actions/setup-python@v6
2737 with :
2838 python-version : ${{ matrix.python-version }}
29- - name : Add msbuild to PATH
30- uses : microsoft/setup-msbuild@v1.0.2
39+ - name : Setup msbuild
40+ if : runner.os == 'Windows'
41+ uses : ilammy/msvc-dev-cmd@v1
3142 continue-on-error : true
43+ - name : Setup cmake
44+ uses : jwlawson/actions-setup-cmake@v1.9
45+ with :
46+ cmake-version : 3.31.0
47+ - name : Install build tools
48+ if : matrix.container
49+ run : |
50+ apt-get update
51+ apt-get install -y make gcc g++ pkg-config
3252 - name : Install dependencies
3353 run : |
3454 python -m pip install --upgrade setuptools pip wheel
3555 python -m pip install tox
56+ - name : Install pkg-config (Windows)
57+ if : runner.os == 'Windows'
58+ run : choco install pkgconfiglite -y
3659 - name : Test with tox
3760 run : tox -e py,lint
3861 env :
0 commit comments