language: python
python:
  - "3.6"
install:
  - pip install .[build]
script: 
  - pytest

language: python
cache: pip
stages:
  - format
  - test
python:
  - "3.6"
  - "3.7"
  - "3.8"
install:
  - pip install .[build]
script: pytest
jobs:
  include:
    - stage: format
      install: pip install black
      script: black --check --verbose cosima_cookbook test
Check code formatting in Travis
Check code formatting in Travis
