name: Test and lint

on: [push]

jobs:
  build:

    runs-on: ubuntu-latest
    strategy:
      matrix:
        python-version: [3.6, 3.7, 3.8, 3.9.0-rc.2]
      fail-fast: false

    steps:
    - uses: actions/checkout@v2
    - name: Set up Python ${{ matrix.python-version }}
      uses: actions/setup-python@v2
      with:
        python-version: ${{ matrix.python-version }}
    - name: Cache dependencies
      uses: actions/cache@v1
      with:
        path: ~/.cache/pip
        key: ${{ runner.os }}-pip-${{ matrix.python-version }}-${{ hashFiles('requirements.txt') }}
    - name: Install dependencies
      run: |
        python -m pip install --upgrade pip
        pip install -r requirements.txt
    - name: Lint with flake8
      run: |
        flake8 --version
        flake8 --show-source --statistics asserts test_asserts.py
    - name: Type checking with mypy
      run: |
        mypy --version
        mypy asserts test_asserts.py
    - name: Test with unittest
      run: python -Wall -m unittest test_asserts
    - name: Run doctests
      run: python -m doctest asserts/__init__.py

name: Test and lint

on: [push]

jobs:
  build:

    runs-on: ubuntu-latest
    strategy:
      matrix:
        python-version: [3.6, 3.7, 3.8, 3.9]
      fail-fast: false

    steps:
    - uses: actions/checkout@v2
    - name: Set up Python ${{ matrix.python-version }}
      uses: actions/setup-python@v2
      with:
        python-version: ${{ matrix.python-version }}
    - name: Cache dependencies
      uses: actions/cache@v1
      with:
        path: ~/.cache/pip
        key: ${{ runner.os }}-pip-${{ matrix.python-version }}-${{ hashFiles('requirements.txt') }}
    - name: Install dependencies
      run: |
        python -m pip install --upgrade pip
        pip install -r requirements.txt
    - name: Lint with flake8
      run: |
        flake8 --version
        flake8 --show-source --statistics asserts test_asserts.py
    - name: Type checking with mypy
      run: |
        mypy --version
        mypy asserts test_asserts.py
    - name: Test with unittest
      run: python -Wall -m unittest test_asserts
    - name: Run doctests
      run: python -m doctest asserts/__init__.py

Use Python 3.9 final in CI
Use Python 3.9 final in CI
