Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/.github/workflows/lint-python.yaml
blob: d4b92f6e99f47cd49ad0855b478081869b9a1652 (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
on: [ push, pull_request ]
name: Lint Python and Find Syntax Errors
jobs:
  mypy:
    runs-on: ubuntu-latest
    container:
      image: archlinux:latest
    steps:
      - uses: actions/checkout@v2
      - run: pacman --noconfirm -Syu python mypy
      - name: run mypy
        run: mypy . --ignore-missing-imports || exit 0
  flake8:
    runs-on: ubuntu-latest
    container:
      image: archlinux:latest
    steps:
      - uses: actions/checkout@v2
      - run: pacman --noconfirm -Syu python python-pip
      - run: python -m pip install --upgrade pip
      - run: pip install flake8
      - name: Lint with flake8
        run: flake8  # See the .flake8 file for runtime parameters
  pytest:
    runs-on: ubuntu-latest
    container:
      image: archlinux:latest
    steps:
      - uses: actions/checkout@v2
      - run: pacman --noconfirm -Syu python python-pip
      - run: python -m pip install --upgrade pip
      - run: pip install pytest
      # TODO: Add tests and enable pytest checks.
#      - name: Test with pytest
#        run: |
#          pytest