name: Linux CI

on: [push, pull_request]

jobs:
  build:
    runs-on: ${{ matrix.os }}
    strategy:
      fail-fast: false
      matrix:
        python-version: ["3.6", "3.7", "3.8", "3.9"]
        os: [ubuntu-latest, ubuntu-20.04]

    steps:
      - name: Checkout source
        uses: actions/checkout@v2
        with:
          submodules: recursive

      - name: Set up Python
        uses: actions/setup-python@v1
        with:
          python-version: ${{ matrix.python-version }}

      - name: Install numcodecs
        run: |
          python -m pip install -U pip -r requirements_test.txt -r requirements_dev.txt
          python -m pip install -v -e .
      - name: List installed packages
        run: python -m pip list

      - name: Run tests
        run: pytest -v --cov=numcodecs --doctest-modules --doctest-glob=*.pyx numcodecs

      - name: Flake8
        run: flake8 numcodecs

      - name: Build Docs
        run: |
          pip install -r requirements_rtfd.txt
          cd docs
          sphinx-build -W -b html
name: Linux CI

on: [push, pull_request]

jobs:
  build:
    runs-on: ${{ matrix.os }}
    strategy:
      fail-fast: false
      matrix:
        python-version: ["3.6", "3.7", "3.8", "3.9"]
        os: [ubuntu-latest, ubuntu-20.04]

    steps:
      - name: Checkout source
        uses: actions/checkout@v2
        with:
          submodules: recursive

      - name: Set up Python
        uses: actions/setup-python@v1
        with:
          python-version: ${{ matrix.python-version }}

      - name: Install numcodecs
        run: |
          python -m pip install -U pip -r requirements_test.txt -r requirements_dev.txt
          python -m pip install -v -e .
      - name: List installed packages
        run: python -m pip list

      - name: Run tests
        run: pytest -v --cov=numcodecs --doctest-modules --doctest-glob=*.pyx numcodecs

      - name: Flake8
        run: flake8 numcodecs

      - name: Build Docs
        run: |
          pip install -r requirements_rtfd.txt
          cd docs
          sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
Fix build docs check on linux ci
Fix build docs check on linux ci
