3 on: [push, pull_request]
11 os: [ubuntu-latest, macos-latest, windows-latest]
12 python-version: ["2.7", "3.5", "3.6", "3.7", "3.8", "3.9", "3.10"]
16 pip-cache-path: ~/.cache/pip
19 pip-cache-path: ~/Library/Caches/pip
22 pip-cache-path: ~\AppData\Local\pip\Cache
24 name: Python ${{ matrix.python-version }} @ ${{ matrix.os-name }}
25 runs-on: ${{ matrix.os }}
30 - uses: actions/checkout@v2
31 - uses: actions/setup-python@v2
33 python-version: ${{ matrix.python-version }}
35 uses: actions/cache@v2
37 path: ${{ matrix.pip-cache-path }}
38 key: ${{ runner.os }}-pip
41 - name: Install dependencies
44 python -m pip install --upgrade pip setuptools wheel
46 pip install --upgrade virtualenv tox
50 pyver = '%d%d' % tuple(sys.version_info[:2])
51 toxenv = 'py%s-sqlite' % pyver
52 if os.name == 'posix':
53 toxenv += ',py%s-flake8' % pyver
56 with open(os.environ['GITHUB_ENV'], 'a') as f:
57 f.write('TOXENV=' + toxenv + '\n')
62 python -c "import os; print(os.environ['TOXENV'])"