Allow specifying workers alternatively as "max" instead of integer #195
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ['3.7', '3.8', '3.9', '3.10', '3.12'] | |
os: [ubuntu-latest] | |
include: | |
- python-version: '3.6' | |
os: ubuntu-20.04 | |
- python-version: '3.12' | |
os: windows-latest | |
- python-version: '3.12' | |
os: macos-latest | |
- python-version: '3.11' | |
os: ubuntu-latest | |
name: 'Quality tests' | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Set up Python ${{ matrix.python-version }} on ${{ matrix.os }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: python -m pip install --upgrade setuptools pip wheel tox | |
- name: Run tests | |
run: tox -e tests | |
- name: Run quality tests | |
run: tox -e lint && tox -e format && tox -e mypy | |
if: matrix.name == 'Quality tests' |