File tree 1 file changed +13
-2
lines changed 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -4,12 +4,18 @@ python =
4
4
3.8: py38, c_library
5
5
3.9: py39, c_library, coverage
6
6
7
+ [gh-actions:env]
8
+ PLATFORM =
9
+ ubuntu-latest: linux_runner
10
+ macos-latest: macos_runner
11
+ windows-latest: windows_runner
12
+
7
13
[tox]
8
14
skip_missing_interpreters = true
9
15
isolated_build = true
10
16
envlist =
11
17
py3{7,8,9},
12
- c_library,
18
+ c_library-{linux_runner, macos_runner, windows_runner} ,
13
19
coverage,
14
20
package
15
21
@@ -38,10 +44,15 @@ wheel = false
38
44
parallel_show_output = True
39
45
40
46
[testenv:c_library]
47
+ # environment will be skipped if regular expression does not match against the sys.platform string
48
+ platform = linux_runner: linux
49
+ macos_runner: darwin
50
+ windows_runner: win32
41
51
description = {[testenv]description} in pure Python (i.e., NOT C-compiled modules)
42
52
setenv =
43
53
{[testenv]setenv}
44
- TESTENV_SPECIFIED_PYTEST_FLAGS = -m " not pure_python_only" --cov-fail-under =97
54
+ linux_runner,macos_runner: TESTENV_SPECIFIED_PYTEST_FLAGS = -m " not pure_python_only" --cov-fail-under =97
55
+ windows_runner: TESTENV_SPECIFIED_PYTEST_FLAGS = -m " not pure_python_only" --cov-fail-under =11
45
56
deps = {[testenv]deps}
46
57
passenv = {[testenv]passenv}
47
58
commands = {[testenv]commands}
You can’t perform that action at this time.
0 commit comments