@@ -32,22 +32,36 @@ jobs:
3232 os : [ubuntu-latest, windows-latest, macos-latest]
3333 python : [cp27, cp37, cp38, cp39]
3434
35- include :
36- - os : macos-latest
37- TEST_REQUIRES : pytest-cov cothread
38- # Put coverage straight in the dist dir
39- COV_FILE : ' {project}/dist/coverage.xml'
35+ exclude :
36+ - os : windows-latest
37+ # No cothread or asyncio so doesn't work
38+ python : cp27
4039
40+ include :
4141 - os : ubuntu-latest
42- TEST_REQUIRES : pytest-cov cothread
4342 # Put coverage in the output dir mounted in docker
44- COV_FILE : ' /output/coverage.xml'
43+ cov_file : /output/coverage.xml
44+ test_requires : cothread pytest-asyncio aioca
4545
4646 - os : windows-latest
47+ cov_file : ' {project}/dist/coverage.xml'
4748 # cothread doesn't work on windows
48- TEST_REQUIRES : pytest-cov
49- # Put coverage straight in the dist dir
50- COV_FILE : ' {project}/dist/coverage.xml'
49+ test_requires : pytest-asyncio aioca
50+
51+ - os : macos-latest
52+ cov_file : ' {project}/dist/coverage.xml'
53+ test_requires : cothread pytest-asyncio aioca
54+
55+ - os : ubuntu-latest
56+ python : cp27
57+ # asyncio doesn't work on Python2.7
58+ test_requires : cothread
59+
60+ - os : macos-latest
61+ python : cp27
62+ # asyncio doesn't work on Python2.7
63+ test_requires : cothread
64+
5165
5266 steps :
5367 - name : Checkout Source
7084 run : cibuildwheel --output-dir dist
7185 env :
7286 CIBW_BUILD : ${{ matrix.python }}*64
73- CIBW_TEST_REQUIRES : ${{ matrix.TEST_REQUIRES }}
74- CIBW_TEST_COMMAND : pytest --cov=softioc {project}/tests --cov-report xml:${{ matrix.COV_FILE }}
87+ CIBW_TEST_REQUIRES : pytest-cov ${{ matrix.test_requires }}
88+ CIBW_TEST_COMMAND : pytest --cov=softioc {project}/tests --cov-report xml:${{ matrix.cov_file }}
7589 # Disable auditwheel as it isn't compatible with setuptools_dso approach
7690 # https://github.com/mdavidsaver/setuptools_dso/issues/17
7791 CIBW_REPAIR_WHEEL_COMMAND : ' '
0 commit comments