Skip to content

Commit 49f73c3

Browse files
authored
chore: submit coverage to codecov (#63)
* chore: submit coverage to codecov * chore: add correct package name on gh action * chore: add windows to os matrix for tests action workflow
1 parent 482f21b commit 49f73c3

File tree

2 files changed

+42
-16
lines changed

2 files changed

+42
-16
lines changed

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Lint
22

3-
on: [pull_request]
3+
on: [push, pull_request]
44

55
jobs:
66
build:

.github/workflows/tests.yml

Lines changed: 41 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,52 @@
11
name: Tests
22

3-
on: [pull_request]
3+
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"]
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
1238

1339
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

Comments
 (0)