6 runs-on: ${{ matrix.os }}
10 python-version: ['3.5', '3.6', '3.7', '3.8', '3.9']
14 installTyping: ${{ true }}
19 uses: actions/checkout@v2
21 - name: Set up Python ${{ matrix.python-version }}
22 uses: actions/setup-python@v2
24 python-version: ${{ matrix.python-version }}
27 uses: actions/cache@v2
29 # This path is specific to Ubuntu
31 # Look to see if there is a cache hit for the corresponding requirements file
32 key: v1-pip-${{ runner.os }}-${{ matrix.python-version }}
34 v1-pip-${{ runner.os }}
37 - name: Install dependencies
42 - name: Install typing for old Python
43 run: pip install typing
44 if: matrix.installTyping
46 - name: Build the code
47 run: python ./setup.py build_ext -i
50 run: python -m pytest tests
55 - name: Re-build with coverage info
56 run: CFLAGS="-coverage" python ./setup.py build_ext -i
58 - name: Test with coverage
59 run: python -m pytest tests
61 - name: Upload coverage to Codecov
62 uses: codecov/codecov-action@v1
64 #files: ./coverage1.xml,./coverage2.xml
65 #directory: ./coverage/reports/
68 name: codecov-python-${{ matrix.python-version }}
69 #fail_ci_if_error: true
70 path_to_write_report: ./codecov_report.txt