---

name: Tests

on:
  push:
    branches-ignore:
      - auto-backport-of-pr-[0-9]+
      - v[0-9]+.[0-9]+.[0-9x]+-doc
  pull_request:

jobs:
  test:
    name: "Python ${{ matrix.python-version }} ${{ matrix.name-suffix }}"
    runs-on: ubuntu-20.04

    strategy:
      matrix:
        python-version: ["3.6", "3.7", "3.8", "3.9", "3.10-dev"]

    steps:
      - uses: actions/checkout@v2
        with:
          fetch-depth: 0

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

      - name: Install Python dependencies
        run: |
          python -m pip install --upgrade pip setuptools wheel
          python -m pip install --upgrade pytest pytest-cov pytest-xdist

      - name: Install cycler
        run: |
          python -m pip install --no-deps .

      - name: Run pytest
        run: |
          pytest -raR -n auto --cov --cov-report=

      - name: Upload code coverage
        uses: codecov/codecov-action@v1

---

name: Tests

on:
  push:
    branches-ignore:
      - auto-backport-of-pr-[0-9]+
      - v[0-9]+.[0-9]+.[0-9x]+-doc
  pull_request:

jobs:
  test:
    name: "Python ${{ matrix.python-version }} ${{ matrix.name-suffix }}"
    runs-on: ubuntu-20.04

    strategy:
      matrix:
        python-version: ["3.6", "3.7", "3.8", "3.9", "3.10"]

    steps:
      - uses: actions/checkout@v2
        with:
          fetch-depth: 0

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

      - name: Install Python dependencies
        run: |
          python -m pip install --upgrade pip setuptools wheel
          python -m pip install --upgrade pytest pytest-cov pytest-xdist

      - name: Install cycler
        run: |
          python -m pip install --no-deps .

      - name: Run pytest
        run: |
          pytest -raR -n auto --cov --cov-report=

      - name: Upload code coverage
        uses: codecov/codecov-action@v2

Update to codecov-action@v2, Python 3.10-dev to 3.10
CI: Update to codecov-action@v2, Python 3.10-dev to 3.10

On February 1, 2022, the codecov-action v1 will be end of life and not longer function. https://github.com/codecov/codecov-action/tree/v2.1.0#%EF%B8%8F--deprecration-of-v1. This commit updates the action to v2.

Also, the Python 3.10-dev tag is replaced with 3.10 since it's in stable release now.