summaryrefslogtreecommitdiffstats
path: root/.github/workflows/ci.yml
blob: 7e8cbf38484da01bef9167baa4682f24cb7a9e19 (plain)
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
name: CI

on: 
  push:
    branches:
      - master
  pull_request:

jobs:
  build:
    runs-on: ${{ matrix.os }}
    strategy:
      matrix:
        # Not all Python versions are available in the latest Ubuntu environments
        # so pin this to 20.04.
        os: [ubuntu-20.04, macos-latest, windows-latest]
        python-version: [
          3.5, 3.6, 3.7, 3.8, 3.9, "3.10", 3.11,
          pypy2.7, pypy3.7, pypy3.8, pypy3.9, pypy3.10,
        ]
    steps:
    - uses: actions/checkout@v2
    - name: Set up Python ${{ matrix.python-version }}
      uses: actions/setup-python@v4
      with:
        python-version: ${{ matrix.python-version }}
    - name: Install dependencies
      run: |
        pip install --upgrade -r requirements.txt
        pip install .
    - name: Run tests
      run: |
        make ci
    - name: Report coverage to Codecov
      uses: codecov/codecov-action@v1