1# This workflow will install Python dependencies, run tests and lint with a variety of Python versions 2# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions 3 4name: YAPF 5 6on: [push] 7 8jobs: 9 build: 10 11 runs-on: ${{ matrix.os }} 12 strategy: 13 matrix: 14 python-version: [2.7, 3.7, 3.8, 3.9] 15 os: [ubuntu-latest, macos-latest] 16 17 steps: 18 - uses: actions/checkout@v2 19 - name: Set up Python ${{ matrix.python-version }} 20 uses: actions/setup-python@v2 21 with: 22 python-version: ${{ matrix.python-version }} 23 - name: Install dependencies 24 run: | 25 python -m pip install --upgrade pip 26 - name: Lint with flake8 27 run: | 28 python -m pip install toml flake8 29 flake8 . --statistics 30 - name: Test with pytest 31 run: | 32 pip install pytest 33 pip install pytest-cov 34 pytest 35