| 1 | language: python |
| 2 | |
| 3 | cache: pip |
| 4 | |
| 5 | env: |
| 6 | - TEST_DIR=/tmp/_vega_datasets |
| 7 | |
| 8 | matrix: |
| 9 | include: |
| 10 | - python: 3.5 |
| 11 | - python: 3.6 |
| 12 | - python: 3.7 |
| 13 | - python: 3.8 |
| 14 | - name: "lint" |
| 15 | python: 3.8 |
| 16 | install: |
| 17 | script: |
| 18 | - black --check . |
| 19 | - mypy vega_datasets |
| 20 | - flake8 vega_datasets |
| 21 | |
| 22 | env: |
| 23 | global: |
| 24 | - TEST_DIR=/tmp/_vega_datasets/ |
| 25 | |
| 26 | before_install: |
| 27 | - pip install pip --upgrade; |
| 28 | - pip install -r requirements_dev.txt |
| 29 | |
| 30 | install: |
| 31 | - pip install -e .; |
| 32 | |
| 33 | script: |
| 34 | - mkdir -p $TEST_DIR |
| 35 | - cd $TEST_DIR && pytest --pyargs --doctest-modules vega_datasets |