-
Notifications
You must be signed in to change notification settings - Fork 86
102 lines (93 loc) · 2.92 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
python-major-version: 3
concurrency:
group: ci-${{ github.ref }}-${{ github.actor }}
cancel-in-progress: true
jobs:
build:
env:
PYTEST_ADDOPTS: "--cov --cov-report=xml"
strategy:
fail-fast: false
matrix:
include:
- python-minor-version: 7
aiohttp-version: aiohttp33
os: ubuntu-latest
- python-minor-version: 7
aiohttp-version: aiohttp34
os: ubuntu-latest
- python-minor-version: 7
aiohttp-version: aiohttp35
os: ubuntu-latest
- python-minor-version: 7
aiohttp-version: aiohttp36
os: ubuntu-latest
- python-minor-version: 7
aiohttp-version: aiohttp37
os: ubuntu-latest
- python-minor-version: 7
aiohttp-version: aiohttp38
os: ubuntu-latest
- python-minor-version: 8
aiohttp-version: aiohttp33
os: ubuntu-latest
- python-minor-version: 8
aiohttp-version: aiohttp34
os: ubuntu-latest
- python-minor-version: 8
aiohttp-version: aiohttp35
os: ubuntu-latest
- python-minor-version: 8
aiohttp-version: aiohttp36
os: ubuntu-latest
- python-minor-version: 8
aiohttp-version: aiohttp37
os: ubuntu-latest
- python-minor-version: 8
aiohttp-version: aiohttp38
os: ubuntu-latest
- python-minor-version: 9
aiohttp-version: aiohttp35
os: ubuntu-latest
- python-minor-version: 9
aiohttp-version: aiohttp36
os: ubuntu-latest
- python-minor-version: 9
aiohttp-version: aiohttp37
os: ubuntu-latest
- python-minor-version: 9
aiohttp-version: aiohttp38
os: ubuntu-latest
- python-minor-version: 10
aiohttp-version: aiohttp37
os: ubuntu-latest
- python-minor-version: 10
aiohttp-version: aiohttp38
os: ubuntu-latest
- python-minor-version: 11
aiohttp-version: aiohttp38
os: ubuntu-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ env.python-major-version }}.${{ matrix.python-minor-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ env.python-major-version }}.${{ matrix.python-minor-version }}
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install tox
- name: Run Tests
run: |
tox -e py${{ env.python-major-version }}${{ matrix.python-version }}-${{ matrix.aiohttp-version }}
- uses: codecov/codecov-action@v2
with:
file: coverage.xml