3 on: [push, pull_request]
11 os: [ubuntu-latest, windows-latest]
12 python-version: [2.7, 3.5, 3.6, 3.7, 3.8, 3.9, 'pypy-2.7']
16 pip-cache-path: ~/.cache/pip
19 pip-cache-path: ~\AppData\Local\pip\Cache
21 name: Python ${{ matrix.python-version }} @ ${{ matrix.os-name }}
22 runs-on: ${{ matrix.os }}
25 - uses: actions/checkout@v2
26 - uses: actions/setup-python@v2
28 python-version: ${{ matrix.python-version }}
30 uses: actions/cache@v2
32 path: ${{ matrix.pip-cache-path }}
33 key: ${{ runner.os }}-pip
34 - name: Install dependencies
37 python -m pip install --upgrade "pip<21.0" "setuptools<45" wheel
39 pip install --upgrade virtualenv tox
43 if hasattr(sys, 'pypy_version_info'):
46 pyver = '%d%d' % tuple(sys.version_info[:2])
47 toxenv = 'py%s' % pyver
48 if os.name == 'posix':
49 toxenv += ',py%s-flake8' % pyver
50 with open(os.environ['GITHUB_ENV'], 'a') as f:
51 f.write('TOXENV=' + toxenv + '\n')
55 python -c "import os; print(os.environ['TOXENV'])"