Skip to content

Commit dad37ac

Browse files
authored
chore: add windows to os matrix for tests action workflow (#152)
* chore: add os matrix to tests action workflow * chore: manually pass excluded py versions per os
1 parent 317ad4b commit dad37ac

File tree

1 file changed

+37
-27
lines changed

1 file changed

+37
-27
lines changed

.github/workflows/tests.yml

Lines changed: 37 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -4,41 +4,51 @@ on: [push, pull_request]
44

55
jobs:
66
build:
7-
runs-on: ubuntu-latest
7+
runs-on: ${{ matrix.os }}
88
strategy:
99
max-parallel: 4
1010
matrix:
1111
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"
1222

1323
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 }}
2737

2838
coverage:
2939
runs-on: ubuntu-latest
3040

3141
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

Comments
 (0)