name: tests
on:
  push:
    branches:
      - master
  pull_request:
    branches:
      - master

jobs:
  build:
    runs-on: ${{ matrix.os }}
    strategy:
      matrix:
        python-version: [3.7, 3.8, 3.9]
        os: [ubuntu-latest, macos-latest, windows-latest]

    steps:
      - uses: actions/checkout@v2
      - name: Set up Python ${{ matrix.python-version }}
        uses: actions/setup-python@v2
        with:
          python-version: ${{ matrix.python-version }}
      - name: Run unit tests
        run: |
          pip install pytest coverage pytest-cov
          pytest --cov=pyrpm.spec

      - name: Check for type errors
        run: |
          pip install pytest pytest-mypy
          pytest --mypy

name: tests
on:
  push:
    branches:
      - master
  pull_request:
    branches:
      - master

jobs:
  build:
    runs-on: ${{ matrix.os }}
    strategy:
      matrix:
        python-version: [3.4, 3.5, 3.6, 3.7, 3.8, 3.9]
        os: [ubuntu-latest, macos-latest, windows-latest]

    steps:
      - uses: actions/checkout@v2
      - name: Set up Python ${{ matrix.python-version }}
        uses: actions/setup-python@v2
        with:
          python-version: ${{ matrix.python-version }}
      - name: Run unit tests
        run: |
          pip install pytest coverage pytest-cov
          pytest --cov=pyrpm.spec

      - name: Check for type errors
        run: |
          pip install pytest pytest-mypy
          pytest --mypy

Add Python ≥ 3.4 to test matrix
Add Python ≥ 3.4 to test matrix
