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

jobs:
  build:
    runs-on: ${{ matrix.os }}
    strategy:
      matrix:
        # We try to go with the currently active Python branches:
        # https://devguide.python.org/#status-of-python-branches
        python-version: [3.7, 3.8, 3.9, 3.10]
        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 -r dev-requirements.txt
          pytest --cov=pyrpm.spec

      - name: Check for type errors
        run: |
          pip install -r dev-requirements.txt
          pytest --mypy

      - name: Run linter
        run: |
          pip install -r dev-requirements.txt
          pylint --rcfile=.pylintrc pyrpm

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

jobs:
  build:
    runs-on: ${{ matrix.os }}
    strategy:
      matrix:
        # We try to go with the currently active Python branches:
        # https://devguide.python.org/#status-of-python-branches
        python-version: ["3.7", "3.8", "3.9", "3.10"]
        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 -r dev-requirements.txt
          pytest --cov=pyrpm.spec

      - name: Check for type errors
        run: |
          pip install -r dev-requirements.txt
          pytest --mypy

      - name: Run linter
        run: |
          pip install -r dev-requirements.txt
          pylint --rcfile=.pylintrc pyrpm

Make version strings actual strings
CI: Make version strings actual strings
