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