| 1 |
# Install Python deps, run tests thru pytest and report combined coverage |
| 2 |
|
| 3 |
name: colorzero-test-suite |
| 4 |
|
| 5 |
on: |
| 6 |
push: |
| 7 |
branches: [master] |
| 8 |
pull_request: |
| 9 |
branches: [master] |
| 10 |
|
| 11 |
jobs: |
| 12 |
test: |
| 13 |
runs-on: ubuntu-latest |
| 14 |
timeout-minutes: 10 |
| 15 |
strategy: |
| 16 |
matrix: |
| 17 |
python-version: |
| 18 |
- "3.5" |
| 19 |
- "3.6" |
| 20 |
- "3.7" |
| 21 |
- "3.8" |
| 22 |
- "3.9" |
| 23 |
- pypy-3.6 |
| 24 |
- pypy-3.7 |
| 25 |
|
| 26 |
steps: |
| 27 |
- name: Checkout |
| 28 |
uses: actions/checkout@v2 |
| 29 |
- name: Install python ${{ matrix.python-version }} |
| 30 |
uses: actions/setup-python@v2 |
| 31 |
with: |
| 32 |
python-version: ${{ matrix.python-version }} |
| 33 |
- name: Install dependencies |
| 34 |
run: | |
| 35 |
sudo apt install exuberant-ctags |
| 36 |
make develop |
| 37 |
- name: Run tests |
| 38 |
run: make test |