File tree 2 files changed +23
-13
lines changed
2 files changed +23
-13
lines changed Original file line number Diff line number Diff line change 14
14
15
15
jobs :
16
16
unit :
17
- runs-on : ubuntu-20.04
17
+ runs-on : ${{ matrix.os }}
18
18
strategy :
19
19
matrix :
20
- include :
21
- - python-version : 3.7
20
+ os : [ubuntu-latest]
21
+ python :
22
+ - version : " 3.7"
22
23
toxenv : py37
23
- - python- version : 3.8
24
+ - version : " 3.8"
24
25
toxenv : py38
25
- - python- version : 3.9
26
+ - version : " 3.9"
26
27
toxenv : py39
27
- - python-version : " 3.10"
28
- toxenv : py310
29
- - python-version : " 3.10"
30
- toxenv : smoke
28
+ - version : " 3.10"
29
+ toxenv : py310,smoke
30
+ include :
31
+ - os : macos-latest
32
+ python :
33
+ version : " 3.10"
34
+ toxenv : py310,smoke
35
+ - os : windows-latest
36
+ python :
37
+ version : " 3.10"
38
+ toxenv : py310,smoke
31
39
steps :
32
40
- uses : actions/checkout@v2
33
- - name : Set up Python ${{ matrix.python- version }}
41
+ - name : Set up Python ${{ matrix.python. version }}
34
42
uses : actions/setup-python@v2
35
43
with :
36
- python-version : ${{ matrix.python- version }}
44
+ python-version : ${{ matrix.python. version }}
37
45
- name : Install dependencies
38
- run : pip install tox pytest-github-actions-annotate-failures
46
+ run : pip3 install tox pytest-github-actions-annotate-failures
39
47
- name : Run tests
40
48
env :
41
- TOXENV : ${{ matrix.toxenv }}
49
+ TOXENV : ${{ matrix.python. toxenv }}
42
50
run : tox
43
51
44
52
functional :
Original file line number Diff line number Diff line change 17
17
18
18
import io
19
19
import os
20
+ import sys
20
21
from textwrap import dedent
21
22
from unittest import mock
22
23
@@ -214,6 +215,7 @@ def test_valid_data(m_open, path_exists):
214
215
215
216
@mock .patch ("os.path.exists" )
216
217
@mock .patch ("builtins.open" )
218
+ @pytest .mark .skipif (sys .platform .startswith ("win" ), reason = "Not supported on Windows" )
217
219
def test_data_from_helper (m_open , path_exists , tmp_path ):
218
220
helper = tmp_path / "helper.sh"
219
221
helper .write_text (
You can’t perform that action at this time.
0 commit comments