@@ -4,41 +4,51 @@ on: [push, pull_request]
4
4
5
5
jobs :
6
6
build :
7
- runs-on : ubuntu-latest
7
+ runs-on : ${{ matrix.os }}
8
8
strategy :
9
9
max-parallel : 4
10
10
matrix :
11
11
python-version : ["3.6", "3.7", "3.8", "3.9-dev", "pypy3"]
12
+ os : [ubuntu-latest, windows-latest]
13
+ exclude :
14
+ - os : windows-latest
15
+ python-version : " 3.6"
16
+ - os : windows-latest
17
+ python-version : " 3.7"
18
+ - os : windows-latest
19
+ python-version : " 3.9-dev"
20
+ - os : windows-latest
21
+ python-version : " pypy3"
12
22
13
23
steps :
14
- - uses : actions/checkout@v2
15
- - name : Set up Python ${{ matrix.python-version }}
16
- uses : actions/setup-python@v2
17
- with :
18
- python-version : ${{ matrix.python-version }}
19
- - name : Install dependencies
20
- run : |
21
- python -m pip install --upgrade pip
22
- pip install tox tox-gh-actions
23
- - name : Test with tox
24
- run : tox
25
- env :
26
- TOXENV : ${{ matrix.toxenv }}
24
+ - uses : actions/checkout@v2
25
+ - name : Set up Python ${{ matrix.python-version }}
26
+ uses : actions/setup-python@v2
27
+ with :
28
+ python-version : ${{ matrix.python-version }}
29
+ - name : Install dependencies
30
+ run : |
31
+ python -m pip install --upgrade pip
32
+ pip install tox tox-gh-actions
33
+ - name : Test with tox
34
+ run : tox
35
+ env :
36
+ TOXENV : ${{ matrix.toxenv }}
27
37
28
38
coverage :
29
39
runs-on : ubuntu-latest
30
40
31
41
steps :
32
- - uses : actions/checkout@v2
33
- - name : Set up Python 3.8
34
- uses : actions/setup-python@v2
35
- with :
36
- python-version : 3.8
37
- - name : Install test dependencies
38
- run : |
39
- python -m pip install --upgrade pip
40
- pip install .[test]
41
- - name : Test with coverage
42
- run : pytest --cov=gql --cov-report=xml tests
43
- - name : Upload coverage to Codecov
44
- uses : codecov/codecov-action@v1
42
+ - uses : actions/checkout@v2
43
+ - name : Set up Python 3.8
44
+ uses : actions/setup-python@v2
45
+ with :
46
+ python-version : 3.8
47
+ - name : Install test dependencies
48
+ run : |
49
+ python -m pip install --upgrade pip
50
+ pip install .[test]
51
+ - name : Test with coverage
52
+ run : pytest --cov=gql --cov-report=xml tests
53
+ - name : Upload coverage to Codecov
54
+ uses : codecov/codecov-action@v1
0 commit comments