Merge pull request #770 from SublimeText-Markdown/st4-develop #296
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI Lint | |
on: | |
push: | |
branches: | |
- 'master' | |
- 'st3176' | |
paths: | |
- '**/*.json' | |
- '**/*.py' | |
- '**/*.sublime-*' | |
pull_request: | |
branches: | |
- '**' | |
paths: | |
- '**/*.json' | |
- '**/*.py' | |
- '**/*.sublime-*' | |
workflow_dispatch: | |
jobs: | |
lint: | |
name: Python ${{ matrix.python }} | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python: | |
- '3.8' | |
arch: | |
- 'x64' | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python }} | |
architecture: ${{ matrix.arch }} | |
- name: Install linters | |
run: pip install -r tests/requirements.txt | |
- name: Run black | |
run: python -m black --check . | |
- name: Run flake8 | |
run: python -m flake8 |