summaryrefslogtreecommitdiff
path: root/.github/workflows/lint.yml
blob: 6a8127fb195c60d71c8f25a1b9c10a3072d105f6 (plain)
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: Lint

on:
  push:
    branches:
      - master
  pull_request:
    branches:
      - master

jobs:
  lint:
    runs-on: ubuntu-latest

    steps:
    - name: Checkout Repository
      uses: actions/checkout@v2

    - name: Set up Python
      uses: actions/setup-python@v2
      with:
        python-version: 3.11.5  

    - name: Install Dependencies
      run: pip install -r requirements.txt  

    - name: Run Black
      run: |
        python -m black --check .

    - name: Run isort
      run: |
        python -m isort --check .

    - name: Run Flake8
      run: |
        python -m flake8

    - name: Run Pylint
      run: |
        python -m pylint app

    - name: Run mypy
      run: |
        python -m mypy .

  testing:
    runs-on: ubuntu-latest

    steps:
    - name: Checkout Repository
      uses: actions/checkout@v2

    - name: Set up Python
      uses: actions/setup-python@v2
      with:
        python-version: 3.11.5

    - name: Install Dependencies
      run: pip install -r requirements.txt

    - name: Run Tests
      run: |
        python -m pytest