3 on: [push, pull_request]
10 python-version: ["2.7", "3.5", "3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "pypy-2.7", "pypy-3.7"]
12 name: Python ${{ matrix.python-version }}
13 runs-on: ubuntu-latest
18 - uses: actions/checkout@v2
19 - uses: actions/setup-python@v4
21 python-version: ${{ matrix.python-version }}
23 uses: actions/cache@v3
25 # This path is specific to Linux/Unix
27 key: ${{ runner.os }}-pip
30 - name: Install dependencies
33 python -m pip install --upgrade pip setuptools wheel
35 pip install --upgrade virtualenv tox
39 if hasattr(sys, 'pypy_version_info'):
42 pyver = '%d%d' % tuple(sys.version_info[:2])
43 toxenv = 'py%s' % pyver
44 with open(os.environ['GITHUB_ENV'], 'a') as f:
45 f.write('TOXENV=' + toxenv + '\n')
49 - name: Run tox targets for ${{ matrix.python-version }}
51 python -c "import os; print(os.environ['TOXENV'])"