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]
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 }}
27 - uses: actions/checkout@v2
28 - uses: actions/setup-python@v2
30 python-version: ${{ matrix.python-version }}
32 uses: actions/cache@v2
34 path: ${{ matrix.pip-cache-path }}
35 key: ${{ runner.os }}-pip
36 - name: Install dependencies
39 python -m pip install --upgrade "pip<21.0" "setuptools<45" wheel
41 python -m pip --version
42 python -m pip install --upgrade virtualenv tox tox-gh-actions
43 - name: Run tox targets for ${{ matrix.python-version }}