| 1 | name: build |
| 2 | |
| 3 | on: [push, pull_request] |
| 4 | |
| 5 | jobs: |
| 6 | build: |
| 7 | runs-on: ubuntu-latest |
| 8 | strategy: |
| 9 | matrix: |
| 10 | python-version: [ '3.5', '3.6', '3.7', '3.8' ] |
| 11 | name: Python ${{ matrix.python-version }} |
| 12 | steps: |
| 13 | - uses: actions/checkout@v1 |
| 14 | - name: Set up Python ${{ matrix.python-version }} |
| 15 | uses: actions/setup-python@v1 |
| 16 | with: |
| 17 | python-version: ${{ matrix.python-version }} |
| 18 | - name: Install dependencies |
| 19 | run: | |
| 20 | python -m pip install --upgrade pip |
| 21 | pip install -r requirements.txt |
| 22 | - name: Test with pytest |
| 23 | run: | |
| 24 | pip install pytest |
| 25 | pytest --doctest-modules vega_datasets |