name: Testing
on:
  push:
    branches: ["*"]
    paths-ignore:
      - 'docs/**'
      - 'setup.*'
      - '*.md'
      - '*.rst'
    tags-ignore: ["*"]
jobs:
  test:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        python: [3.7, 3.8]
    container:
      image: python:${{ matrix.python }}-alpine
    steps:
      - name: Checkout repository
        uses: actions/checkout@v1

      - name: Install GCC Libraries and Headers
        run: apk add gcc linux-headers make musl-dev python3-dev

      - name: Install testing dependencies
        run: pip3 install -r requires/development.txt

      - name: Install library dependencies
        run: python3 setup.py develop

      - name: Create build directory
        run: mkdir -p build

      - name: Run flake8 tests
        run: flake8 --output build/flake8.txt --tee

      - name: Run tests
        run: coverage run

      - name: Generate reports
        run: coverage xml && coverage report

      - name: Upload Coverage
        uses: codecov/codecov-action@v1.0.2
        if: github.repository == 'sprockets/sprockets.mixins.cors'
        with:
          token: ${{secrets.CODECOV_TOKEN}}
          file: build/coverage.xml

name: Testing
on:
  push:
    branches: ["*"]
    paths-ignore:
      - 'docs/**'
      - 'setup.*'
      - '*.md'
      - '*.rst'
    tags-ignore: ["*"]
jobs:
  test:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        python: [3.7, 3.8, 3.9, 3.10]
    container:
      image: python:${{ matrix.python }}-alpine
    steps:
      - name: Checkout repository
        uses: actions/checkout@v1

      - name: Install GCC Libraries and Headers
        run: apk add gcc linux-headers make musl-dev python3-dev

      - name: Install testing dependencies
        run: pip3 install -r requires/development.txt

      - name: Install library dependencies
        run: python3 setup.py develop

      - name: Create build directory
        run: mkdir -p build

      - name: Run flake8 tests
        run: flake8 --output build/flake8.txt --tee

      - name: Run tests
        run: coverage run

      - name: Generate reports
        run: coverage xml && coverage report

      - name: Upload Coverage
        uses: codecov/codecov-action@v1.0.2
        if: github.repository == 'sprockets/sprockets.mixins.cors'
        with:
          token: ${{secrets.CODECOV_TOKEN}}
          file: build/coverage.xml

Add python 3.9 and 3.10 to test job
Add python 3.9 and 3.10 to test job
