aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/ci.yml
blob: b0a9160acc8344620b1895c5809fd195c14bab82 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
name: CI

on: [push, pull_request, workflow_dispatch]

jobs:
  main:
    name: Python ${{ matrix.python }}
    runs-on: ubuntu-20.04
    strategy:
      fail-fast: false
      matrix:
        python: ["3.6", "3.7", "3.8", "3.9", "pypy-3.6", "pypy-3.7"]
    steps:
      - uses: actions/checkout@v2
      - uses: actions/setup-python@v2
        with:
          python-version: ${{ matrix.python }}
      - run: python -m pip install coverage tox
      - run: python -m tox
      - uses: codecov/codecov-action@v1
        with:
          name: ${{ matrix.python }}