name: Python codeqa/test on: push: branches: "*" pull_request: branches: "*" jobs: flake8: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - name: Check code style with Flake8 uses: TrueBrain/actions-flake8@v1.2 with: path: src tests test: needs: [flake8] strategy: fail-fast: false matrix: os: [ubuntu-latest, macos-latest, windows-latest] python-version: [3.6, 3.8, pypy3] exclude: - os: macos-latest python-version: pypy3 - os: windows-latest python-version: pypy3 runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v2 - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v2 with: python-version: ${{ matrix.python-version }} - name: Install the project and its dependencies run: pip install .[test] - name: Test with pytest run: pytest