name: Tests on: [push, pull_request] env: PY_COLORS: "1" jobs: test: runs-on: ${{ matrix.os }} continue-on-error: ${{ matrix.experimental }} # See: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idcontinue-on-error strategy: matrix: os: [ubuntu-latest, macos-latest, windows-latest] experimental: [false] python-version: [3.6, 3.7, 3.8, 3.9, pypy3] include: - python-version: 3.10.0-alpha.7 # Newest: https://github.com/actions/python-versions/blob/main/versions-manifest.json os: ubuntu-latest experimental: true fail-fast: false 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 dependencies run: | python -m pip install --upgrade pip pip install tox - name: Test with pytest via tox run: | tox -e gh format: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - name: Set up Python 3.9 uses: actions/setup-python@v2 with: python-version: 3.9 - name: Install dependencies run: | python -m pip install --upgrade pip pip install -r requirements-lint.txt - name: Code Format Check with Black run: | black --check --verbose .