Skip to content
Myr

tests.yaml

This file

Path

.github/workflows/tests.yaml

53 lines · 1.8 KiB · YAML

Last changed by

test Python 3.9 (#1707)Patrickbefore adoptionf0cc87d

History of this file

Take it

Merge pull request #1561 from pallets/github-actionsDavid Lordbefore adoption499140d

lines 1–18why, one step back
1name: Tests
2on:3 push:4 branches:5 - master6 - '*.x'7 pull_request:8 branches:9 - master10 - '*.x'11jobs:12 tests:13 name: ${{ matrix.name }}14 runs-on: ${{ matrix.os }}15 strategy:16 fail-fast: false17 matrix:18 include:

test Python 3.9 (#1707)Patrickbefore adoptionf0cc87d

lines 19–22why, one step back
19 - {name: Linux, python: '3.9', os: ubuntu-latest, tox: py39}
20 - {name: Windows, python: '3.9', os: windows-latest, tox: py39}21 - {name: Mac, python: '3.9', os: macos-latest, tox: py39}22 - {name: '3.8', python: '3.8', os: ubuntu-latest, tox: py38}

Merge pull request #1561 from pallets/github-actionsDavid Lordbefore adoption499140d

lines 23–25why, one step back
23 - {name: '3.7', python: '3.7', os: ubuntu-latest, tox: py37}
24 - {name: '3.6', python: '3.6', os: ubuntu-latest, tox: py36}25 - {name: 'PyPy', python: pypy3, os: ubuntu-latest, tox: pypy3}

test Python 3.9 (#1707)Patrickbefore adoptionf0cc87d

lines 26–27why, one step back
26 - {name: Style, python: '3.9', os: ubuntu-latest, tox: style}
27 - {name: Docs, python: '3.9', os: ubuntu-latest, tox: docs}

Merge pull request #1561 from pallets/github-actionsDavid Lordbefore adoption499140d

lines 28–53why, one step back
28 steps:
29 - uses: actions/checkout@v230 - uses: actions/setup-python@v231 with:32 python-version: ${{ matrix.python }}33 - name: update pip34 run: |35 pip install -U wheel36 pip install -U setuptools37 python -m pip install -U pip38 - name: get pip cache dir39 id: pip-cache40 run: echo "::set-output name=dir::$(pip cache dir)"41 - name: cache pip42 uses: actions/cache@v143 with:44 path: ${{ steps.pip-cache.outputs.dir }}45 key: pip|${{ runner.os }}|${{ matrix.python }}|${{ hashFiles('setup.py') }}|${{ hashFiles('requirements/*.txt') }}46 - name: cache pre-commit47 uses: actions/cache@v148 with:49 path: ~/.cache/pre-commit50 key: pre-commit|${{ matrix.python }}|${{ hashFiles('.pre-commit-config.yaml') }}51 if: matrix.tox == 'style'52 - run: pip install tox53 - run: tox -e ${{ matrix.tox }}