| 1 | name: Test |
| 2 | |
| 3 | on: [push, pull_request] |
| 4 | |
| 5 | jobs: |
| 6 | test: |
| 7 | runs-on: ubuntu-latest |
| 8 | strategy: |
| 9 | matrix: |
| 10 | python-version: [ 3.5, 3.6, 3.7, 3.8, 3.9, 2.7 ] |
| 11 | steps: |
| 12 | - uses: actions/checkout@v2 |
| 13 | |
| 14 | - name: Setup Python ${{ matrix.python-version }} |
| 15 | uses: actions/setup-python@v2 |
| 16 | with: |
| 17 | python-version: ${{ matrix.python-version }} |
| 18 | |
| 19 | - name: Install dependencies |
| 20 | run: | |
| 21 | pip install pytest |
| 22 | |
| 23 | - name: Run tests |
| 24 | run: pytest -v |