-
Notifications
You must be signed in to change notification settings - Fork 643
45 lines (43 loc) · 972 Bytes
/
ci-lint.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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 .
if: ${{ matrix.python == '3.8' }}
- name: Run flake8
run: python -m flake8