3 on: [push, pull_request]
10 python-version: [2.7, 3.5, 3.6, 3.7, 3.8, 3.9]
12 name: Python ${{ matrix.python-version }}
13 runs-on: ubuntu-latest
16 - uses: actions/checkout@v2
17 - uses: actions/setup-python@v2
19 python-version: ${{ matrix.python-version }}
21 uses: actions/cache@v2
23 # This path is specific to Linux/Unix
25 key: ${{ runner.os }}-pip
26 - name: Install dependencies
29 python -m pip install --upgrade "pip<21.0" "setuptools<45" wheel
31 pip install --upgrade virtualenv tox
35 pyver = '%d%d' % tuple(sys.version_info[:2])
36 toxenv = 'py%s' % pyver
37 toxenv += ',py%s-sqlite' % pyver
38 if os.name == 'posix':
39 toxenv += ',py%s-flake8' % pyver
40 with open(os.environ['GITHUB_ENV'], 'a') as f:
41 f.write('TOXENV=' + toxenv + '\n')
45 python -c "import os; print(os.environ['TOXENV'])"