|
49 | 49 | matrix: |
50 | 50 | os: [macOS-latest, ubuntu-latest, windows-latest] |
51 | 51 |
|
52 | | - lint-multi-python: |
53 | | - name: Lint Python ${{ matrix.python-version }} |
54 | | - runs-on: ubuntu-latest |
55 | | - steps: |
56 | | - - uses: actions/checkout@v2 |
57 | | - - uses: actions/setup-python@v1 |
58 | | - with: |
59 | | - python-version: 3.x |
60 | | - - uses: actions/cache@v1 |
61 | | - with: |
62 | | - key: v0-${{ runner.os }}-pip-lint-${{ hashFiles('setup.py') }} |
63 | | - path: ~/.cache/pip |
64 | | - restore-keys: | |
65 | | - v0-${{ runner.os }}-pip-lint- |
66 | | - v0-${{ runner.os }}-pip- |
67 | | - - name: Install dependencies |
68 | | - run: | |
69 | | - python -m pip install --upgrade pip |
70 | | - pip install .[lint] |
71 | | - - name: Check other phrase usages |
72 | | - run: python ./tools/static_word_checks.py |
73 | | - - name: Check documentation |
74 | | - run: python ./tools/check_documentation.py |
75 | | - - name: Check docstrings |
76 | | - run: python ./tools/check_docstring.py |
77 | | - - name: Run black |
78 | | - run: black --check --verbose . |
79 | | - - name: Run flake8 |
80 | | - run: flake8 --exclude docs --statistics |
81 | | - - name: Run flynt |
82 | | - run: flynt -vdf -tc -ll 1000 . |
83 | | - - name: Run isort |
84 | | - run: isort -cv . |
85 | | - - name: Run pydocstyle |
86 | | - run: pydocstyle praw |
87 | | - - name: Run sphinx |
88 | | - run: sphinx-build --keep-going docs/ /tmp/foo |
89 | | - strategy: |
90 | | - matrix: |
91 | | - python-version: [3.6, 3.7, 3.8, 3.9] |
92 | | - |
93 | 52 | test-multi-os: |
94 | 53 | name: Test ${{ matrix.os }} |
95 | 54 | runs-on: ${{ matrix.os }} |
|
122 | 81 | - uses: actions/checkout@v2 |
123 | 82 | - uses: actions/setup-python@v1 |
124 | 83 | with: |
125 | | - python-version: 3.x |
| 84 | + python-version: ${{ matrix.python-version }} |
126 | 85 | - uses: actions/cache@v1 |
127 | 86 | with: |
128 | 87 | key: v0-${{ runner.os }}-pip-test-${{ hashFiles('setup.py') }} |
|
0 commit comments