3 on: [push, pull_request]
10 os: [ubuntu-latest, macos-latest, windows-latest]
11 python-version: ["2.7", "3.5", "3.6", "3.7", "3.8", "3.9", "3.10", "3.11"]
15 pip-cache-path: ~/.cache/pip
18 pip-cache-path: ~/Library/Caches/pip
21 pip-cache-path: ~\AppData\Local\pip\Cache
23 name: Python ${{ matrix.python-version }} @ ${{ matrix.os-name }}
24 runs-on: ${{ matrix.os }}
29 - uses: actions/checkout@v2
30 - uses: actions/setup-python@v4
32 python-version: ${{ matrix.python-version }}
34 uses: actions/cache@v3
36 path: ${{ matrix.pip-cache-path }}
37 key: ${{ runner.os }}-pip
40 - name: Install dependencies
43 python -m pip install --upgrade pip setuptools wheel
45 pip install --upgrade virtualenv tox
49 pyver = '%d%d' % tuple(sys.version_info[:2])
50 toxenv = 'py%s-sqlite' % pyver
51 if os.name == 'posix':
52 toxenv += ',py%s-flake8' % pyver
55 with open(os.environ['GITHUB_ENV'], 'a') as f:
56 f.write('TOXENV=' + toxenv + '\n')
61 python -c "import os; print(os.environ['TOXENV'])"