name: Run tests for PyWebP
on: [push]
jobs:
  build:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        python-version: [3.6, 3.7, 3.8, 3.9]
    steps:
      - uses: actions/checkout@v2
      - name: Set up Python ${{ matrix.python-version }}
        uses: actions/setup-python@v2
        with:
          python-version: ${{ matrix.python-version }}
      - name: Build the package
        run: |
          pip3 install build
          python3 -m build --sdist
      - name: Install the package
        run: |
          pip3 install dist/webp-*.tar.gz
      - name: Test with pytest
        run: |
          pip3 install pytest==5.4.3
          pytest tests/

Add GitHub action for tests
Add GitHub action for tests
