1
1
name : Tests
2
2
3
- on : [pull_request]
3
+ 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"]
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
+
21
+ steps :
22
+ - uses : actions/checkout@v2
23
+ - name : Set up Python ${{ matrix.python-version }}
24
+ uses : actions/setup-python@v2
25
+ with :
26
+ python-version : ${{ matrix.python-version }}
27
+ - name : Install dependencies
28
+ run : |
29
+ python -m pip install --upgrade pip
30
+ pip install tox tox-gh-actions
31
+ - name : Test with tox
32
+ run : tox
33
+ env :
34
+ TOXENV : ${{ matrix.toxenv }}
35
+
36
+ coverage :
37
+ runs-on : ubuntu-latest
12
38
13
39
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 }}
40
+ - uses : actions/checkout@v2
41
+ - name : Set up Python 3.8
42
+ uses : actions/setup-python@v2
43
+ with :
44
+ python-version : 3.8
45
+ - name : Install test dependencies
46
+ run : |
47
+ python -m pip install --upgrade pip
48
+ pip install .[test]
49
+ - name : Test with coverage
50
+ run : pytest --cov=graphql_server --cov-report=xml tests
51
+ - name : Upload coverage to Codecov
52
+ uses : codecov/codecov-action@v1
0 commit comments