name: Test

on:
  push:
    branches: [main]
  pull_request:
    branches: [main]

jobs:
  build:
    runs-on: ${{ matrix.platform }}
    strategy:
      matrix:
        python-version: [3.6, 3.7, 3.8, 3.9]
        platform: [ubuntu-latest, windows-latest]
    steps:
      - uses: actions/checkout@v2
        with:
          submodules: recursive
          fetch-depth: 0
      - name: Set up Python ${{ matrix.python-version }}
        uses: actions/setup-python@v2
        with:
          python-version: ${{ matrix.python-version }}
      - name: Install packages
        run: |
          pip install .
          pip install mypy pytest
      - name: Run Tests
        run: |
          pytest ./Lib/gftools/tests/test_usage.py
          pytest ./Lib/gftools/tests/test_fix.py
          pytest ./Lib/gftools/tests/test_stat.py
          pytest ./Lib/gftools/tests/test_html.py
          pytest ./Lib/gftools/tests/test_instancer.py
          mypy ./Lib/gftools/packager.py

name: Test

on:
  push:
    branches: [main]
  pull_request:
    branches: [main]

jobs:
  build:
    runs-on: ${{ matrix.platform }}
    strategy:
      matrix:
        python-version: [3.6, 3.7, 3.8, 3.9]
        platform: [ubuntu-latest, windows-latest]
    steps:
      - uses: actions/checkout@v2
        with:
          submodules: recursive
          fetch-depth: 0
      - name: Set up Python ${{ matrix.python-version }}
        uses: actions/setup-python@v2
        with:
          python-version: ${{ matrix.python-version }}
      - name: Install packages
        run: |
          pip install .
          pip install mypy==0.812 pytest
      - name: Run Tests
        run: |
          pytest ./Lib/gftools/tests/test_usage.py
          pytest ./Lib/gftools/tests/test_fix.py
          pytest ./Lib/gftools/tests/test_stat.py
          pytest ./Lib/gftools/tests/test_html.py
          pytest ./Lib/gftools/tests/test_instancer.py
          mypy ./Lib/gftools/packager.py

Use older version of mypy
Use older version of mypy
